How to delete a TFS Project from TFS Online

Microsoft have pulled an absolute blinder giving us Team Foundation Service, their TFS in the Cloud solution, but once you've fired off a few test projects to play with it and want to get on with some proper codeage, how do you delete them?

There's currently no way of doing that through their web interface, so you have to rely on the command prompt and either at least Visual Studio 2012 or the free Team Explorer 2012 to give you the tfsdeleteproject.exe command.

Here's how:

  1. Fire up a command prompt (Start -> Run "cmd.exe")
  2. Navigate to where you've installed one of the above tools (cd "C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE")
  3. Run tfsdeleteproject.exe /force /collection:https://<your tfs online collection name>.visualstudio.com/DefaultCollection "your project name"

The key thing to remember here is the "/DefaultCollection". Even with the /force argument you'll be prompted before deleting.

Share this: