Scott Van Vliet

Less Talk, More Rock

Deleting TFS Workspace Cache

Taking a break from my India-related postings…

I must say, my experience over the past month working with Team Foundation Server has left an awful taste in my mouth.  From licensing to migration issues, it’s very evident that TFS is a version 1.0 product.  

In lieu of such issues, we recently had to put together a stop-gap solution to provide access to our TFS environment whilst trying to migrate to new hardware.  As part of this solution, we had to remap Workspaces on each client machine (which were a pain-in-the-ass to find in the first place.)  This may not seem like a big deal, but trying to communicate such an activity to 25 non-technical folks who are also using TFS (i.e. Business Analysts, UI Designers, PMO types) can prove to be quite challenging.

Fortunately, the Team Foundation Source Control command-line client came through to the rescue.  Using the following command, you can wipe out Workspace cache:

tf.exe workspaces /remove:*

Package this up in a nice little batch script and viola!  Note that this command deletes ALL cached workspaces for the user, so be careful (this is the behavior we were after.)

Sorry for the rant, but I had to vent somewhere!

Posted: Sep 11 2006, 02:42 AM by skillet | with 4 comment(s)
Filed under:

Comments

Team System News said:

Johan Danforth on How to delete a TFS Build Type. Paul Cornell on Visual Studio 2005 SDK Documentation...

# September 11, 2006 9:30 AM

siva kiran said:

Thanks scott. This article helped me to come out of the problem for which i spent more than 5 hours.

Thanks for the effort in sharing the info.

# September 14, 2006 9:00 AM

Phuong said:

Thank you a lot, Skillet

This article help me wiping out my 2-day headache

# November 15, 2007 9:34 PM

Chao Li said:

Thanks a lot, Skillet.

This helps me a lot!

# February 26, 2008 11:05 PM
Leave a Comment

(required) 

(required) 

(optional)

(required)