I really appreciate having the online Team Foundation Service (http://tfs.visualstudio.com/) as free source control for my personal projects. It has saved my bacon more than once when I’ve needed to roll back my code to a known good point, regroup, and dive in afresh.
While doing some housekeeping, I wanted to clear out old projects. There didn’t seem to be a way to delete a project in the browser-based interface or the embedded VS 2012 GUI.
The short answer is that you need to use the Visual Studio 2012 Command Prompt. Here’s where the shortcut led on my system:
%comspec% /k ""C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\Tools\VsDevCmd.bat""
At the prompt, execute this command, inserting your own TFS name and project name.
TfsDeleteProject /collection:https://yourTFSname.visualstudio.com/DefaultCollection ProjectName