How To: Delete a Team Project from your Visual Studio Online account

    General discussion

  • For some time now Buck Hodges has had a nice BLOG post about deleting team projects from Team Foundation Service collections. Not trying to reinvent the wheel but I thought it valuable to have it here in our support forum, too.

    You can do it in one of two ways:

    1. GUI. See here.

    2. Command Line. To delete a team project from VSO in this manner you will need Visual Studio 2012 or later (or just Team Explorer 2012 or later, which is free here). These provide you with the "tfsdeleteproject.exe" command line tool, which is usually located in C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE. Open a Command Prompt in that folder and then run the delete command like this (don't forget the "/DefaultCollection" bit and remember to use quotation marks around your team project name if it has spaces in it).

    tfsdeleteproject.exe /force /collection:https://<YourCollection> "My project name with spaces"

    NOTE: Inclusion of the /FORCE switch is optional, but if you received errors creating a team project or had troubles accessing it after creation and want to force it's deletion, the /FORCE switch may be necessary. It doesn't hurt to use it all the time.

    Monday, November 05, 2012 7:49 PM