20 Jul 2016

0 Comments

Deleting a TFS workspace from the command line

Today I had need to explicitly remove a TFS 2015 workspace. I was troubleshooting a build and wanted to completely remove any workspace the build service might be using.I did this from a new TFS 2015 Build Agent machine (non-XAML) that had VS2015 installed as well. The process I used to do this was as follows.1. Open a developer command prompt2. Get a list of all workspaces (you can refine further if needed)tf workspaces /server:http://{TFSServername}:8080/tfs/{CollectionName} /owner:*This will return a list of all workspaces including the Owner of the workspace. Find the name of the workspace you want to delete and...

Read More