-
Book Overview & Buying
-
Table Of Contents
Microsoft Team Foundation Server 2015 Cookbook
By :
Deleting a Team Project permanently removes data associated with that project from the database. The data cannot be recovered later. Therefore, you should save Team Project data that you might want to access later. In this recipe, you'll learn how to delete a Team Project using the TFS Admin Console and the command line. We will also review the difference between the two approaches.
In order to delete the Team Project, you should be a member of the following groups:
In this recipe, we'll review the two available options to delete a Team Project. The first option is to delete it from the TFS Admin Console, and the other option is to delete it from the command line. When a project is deleted from the admin console, any associated reports and SharePoint portal projects need to be manually deleted. The TFSDeleteProject command-line tool deletes all artifacts.
First let's look at how to delete the Team Project from the Team Project Administration Console:




Now, let's look at how to delete the Team Project using the tfsdeleteteamproject command-line tool:
%programfiles(x86)%\Microsoft Visual Studio 14.0\Common7\IDE.tfsdeleteproject /q /force /collection:http://tfs2015:8080/tfs/ Fabrikam

The command-line utility offers a few more switches:
/q: This is an option switch; it enforces quite mode wherein no prompts are raised for confirmation during the deletion process./force: This is an optional switch; it enforces that the deletion process should continue even if some components cannot be deleted./excludewss: This is an optional switch. If you do not want to delete the SharePoint site associated with the Team Project, use this switch.The tfsdeleteproject command carries out the deletion in two phases. The first phase deletes the project data that includes data in version control, build and test manager, components of the Team Project in Team Explorer, Work Items, and any Work Item fields that exclusively belong to the Team Project. The next phase deletes the project websites. This includes any reports associated to the Team Project as well as project portals on SharePoint.
If you try to access a Team Project that has been deleted, you are likely to get this error message. TF200016: The following project does not exist. Verify that the name of the project is correct and that the project exists on the specified Team Foundation Server.
The following data may remain undeleted when using tfsdeleteproject:
tfsdeleteproject does not delete any metadata for Work Item tracking that is shared between Team Projects.
Change the font size
Change margin width
Change background colour