Http://www.cnblogs.com/zfanlong1314/p/3378441.html
My TFS Address: https://zfanlong1314.visualstudio.com/
Recently, in the test for TFS, many projects were established on the TFS server, and it was found that only team projects could be removed from the group Explorer, except that the project was removed from the current Team Explorer project list, and the next time you connect to the TFS server, or refresh it and you'll see that the project is still there. Finally, you must use the command line method to delete the project, using the following methods:
1, Microsoft provides a removal tool, located in the C:\Program Files\Microsoft Visual Studio 11.0\common7\ide directory, named TFSDeleteProject.exe, using the following methods:
Usage: tfsdeleteproject [/Q] [/force] [/EXCLUDEWSS]/collection:<url> < team project name >
Remove the team project from the group Foundation. To use this command, you must be a Team Foundation Server
Members of the Administrators group or the project Administrators group for the item to be deleted. Use this Life
Be careful when the team project is deleted and cannot be recovered.
[/Q]-no prompt for confirmation.
[/force]-continues even if some data cannot be deleted.
[/EXCLUDEWSS]-When you delete an item, the project's SharePoint site is not deleted. This option will protect the site
In order for other projects to be used.
/collection:<url>-The URL of the team project collection.
< team project name >-the name of the project. If there are spaces in the name, use quotation marks.
Here is a project that I tested.
C:\Program Files\Microsoft Visual Studio 11.0\common7\ide>tfsdeleteproject.exe/
Q/collection:https://zfanlong1314.visualstudio.com/defaultcollection/testdemoproject
removing from Build ...
Complete
removing from version control ...
Complete
removing from work item tracking ...
Complete
removing from TestManagement ...
Complete
removing from Git ...
Complete
removing from processmanagement ...
Complete
removing from labmanagement ...
Complete
removing from ProjectServer ...
Complete
Warning. The report Server service was not found.
Warning. The SharePoint site service was not found.
removing from Team Foundation Core ...
Complete
TFS Service-side:
Visual Studio Client
How Visual Studio 2012 completely deletes a team project on TFS