views:

362

answers:

3
+1  Q: 

TFS Workspaces

Hi, I want to delete a workspace from another user different than mine How can I do this? If I use Visual Studio 2008 integration, I can only manage my own workspaces, but I cant see other users workspaces. I guess that one option should be connecting to the server with a different user in visual studio, but I cant find that option. Visual studio uses my windows username to login, so I cant see the login dialog. Any ideas?

Thanks

Federico

+3  A: 

You need to use the command line tool TF.EXE (use the Visual Studio command line to get it in your path).

tf help workspace

To list the options, and more detailed help on MSDN.

Richard
+1  A: 

As well as the command line (tf.exe) you can also do this with the excellent and free TFS SideKicks from Attrice if command lines are not your thing.

Martin Woodward
+1  A: 

I have had a simular issue a while back and here is the way I fixed it. We had a person leave the company and they had a bunch of files locked.

Here is the command list of what I did... I have a blog post (link at the bottom) that gives a detailed replay of what my fix was.

  1. tf workspaces /computer:ComputerName /owner:* /format:detailed /server:http://teamserver01:8080
  2. tf workspace /delete /server:http://teamserver01:8080 ComputerName;TheOtherGuy
  3. yes
  4. tf workspaces /computer:ComputerName /owner:* /format:detailed /server:http://teamserver01:8080

YetAnotherDeveloper.com

YetAnotherDeveloper