Saturday, November 28, 2009

How to Delete a Project from TFS 2008

This method deletes entire projects and all its dependents. This includes Build information, Work Items, Version Control, Report Server files and the SharePoint site. This will NOT delete anything that is shared with another project however.
On the App Tier of TFS; open a command prompt to the following location:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE
From here you will run a tool called TFSDeleteProject.exe. The parameters required are the TFS App Tier name and the Project name that is being deleted. The following is an example of the syntax:
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>TFSDeleteProject /server:<AppTierServer> "ProjectName"
You will get a warning asking if you are sure about deleting the project; press “Y” and enter which will start the process of deleting the project and its dependencies. The process can a while depending on the number of items the particular project contains in version control and number of work items.

UPDATE:
Please make sure you change the Instance ID on any restored system!  To learn more about this; check out Buck Hodges blog and post on this topic
Instance ID and the Visual Studio caching put me in a most awkward situation where I ended up deleting the projects from the wrong environment.  Oops!

No comments:

Post a Comment