How Visual Studio 2012 completely deletes a team project on TFS

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.