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 tf.exe

Source: MSDN

Deleting a workspace using GUI

If you prefer a rich UI you can use the free Team Foundation Sidekicks tool by Attrice Corp.

Deleting Workspaces using Team Foundation Sidekicks

One thought on “How to remove someone else’s workspace in TFS”

Leave a Reply

Your email address will not be published. Required fields are marked *


You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>