How to remove someone else's workspace in TFS
A customer asked:
“During my vacation my collegue was working on my machine and mapped the solution file to D:\Projects. Now I returned and wanted to map the solution to that folder as well, which obviously doesn’t work since it is already mapped.
How can I get rid of the workspace that my collegue has on my machine? (Since he won’t be working on my machine anymore it can be freely deleted.)”
First of all: you obviously need to be either the owner of the workspace or have the Administer workspaces permission on the Team Foundation Server to perform this.
Deleting a workspace using the command line
The command is:
tf workspace /delete [/server:servername] workspacename[;workspaceowner]
Deleting a workspace using GUI
If you prefer a rich UI you can use the free Team Foundation Sidekicks tool by Attrice Corp.