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.

Comments (1)
  1. Grant Holliday on What’s the difference between tf workspace /delete and tf workspaces /remove? Shai…

Comments are closed.