What’s the difference between tf workspace /delete and tf workspaces /remove?

Today I needed to delete multiple workspaces. There are two separate commands for dealing with workspaces.

The first is the “tf workspaces” command:

tf workspaces /remove:(*|workspace1[,workspace2,...]) /server:(*|server)

The second is the “tf workspace” command:

tf workspace /delete [/server:servername] workspacename[;workspaceowner]

You might think that because the first command takes multiple items as parameters, it’s does “bulk workspace removal” – but it doesn’t :)

  • tf workspaces /remove - Removes the specified workspace entries for the specified server from the client cache.
  • tf workspace /delete - Deletes the specified workspace.

There’s also the “tfpt workspace” command from the Team Foundation Power Tools that lets you change the computer associated with a workspace. This is useful in the scenario that you rebuild your machine with a new machine name, or you move to a different machine and take your external drive with you.

Published 14 October 08 05:59 by grantholliday

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Comments

# Team System News said on October 20, 2008 10:10 AM:

Grant Holliday on What's the difference between tf workspace /delete and tf workspaces /remove? Shai...

Leave a Comment

(required) 
(optional)
(required) 

  
Enter Code Here: Required

Search

This Blog

Syndication

Page view tracker