Somehow I have ended up with a "ghost" workspace. It doesn't show up in Visual Studio under Manage Workspaces. When I connect to VS Team Services and open source control explorer it pops up an error dialog with TF14061 ("The workspace does not exist")
When I try to delete it from sidekicks it also results in TF14061:
tf vc workspace "MYCOMPUTER;My Name" /delete /collection:https://me.visualstudio.com/defaultcollection
TF14061: The workspace MYCOMPUTER;My Name does not exist.
I can see the workspace when searching for shelvesets on my computer:
tf workspaces /computer:MYCOMPUTER /owner:* /collection:https://me.visualstudio.com/defaultcollection
Result:
=======================================================================================================================
Workspace : MYCOMPUTER
Owner : My Name
Computer : MYCOMPUTER
Comment :
Collection : https://me.visualstudio.com/defaultcollection
Permissions: Private
Location : Server
File Time : Current
Working folders:
$/: C:\local
Simply searching for the workspace by workspace name or by owner name does not return the workspace at all.
I am trying to create a new workspace and map it to the same folder but I'm getting the error that this folder is already mapped in another workspace.
How can I remove this phantom workspace?
Edit: Additional information It appears the security tokens for these duplicate workspaces are different even though the owner is the same. One matches the my Azure AD account, the other matches my Microsoft Account. This is odd, since my Microsoft Account has no permission on this server.
Note: I'm using Visual Studio Team Services.