Pages

Tuesday, July 9, 2013

How to delete a Team Project in TFS 2010 through Command Line



Hi,
In this Post i will explain you about how to delete Team project in TFS through command line Utility
.
TFS Delete Project Command line tool. You can find this in Drive:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE on any client computer that runs Team Explorer.
To use the TFSDeleteProject command, you must be a member of the Team Foundation Administrators security group or the Project Administrators security group.
Also please note that TFSDeleteProject permanently destroys the team project, after which it cannot be recovered. You should backup all important project data before using TFSDeleteProject (if needed).

Syntex
 
TFSDeleteproject [/q] [/force] [/excludewss] /collection:URLTeamProjectName

Below are parameters that need to be specified as per the requirements:
Option
Description
/q
Optional. Use the quiet mode. Do not prompt the user for confirmation.
/force
Optional. Specifies that the deletion process should continue even if some components cannot be deleted.
/excludewss
Optional. Specifies to not delete the SharePoint site that is associated with the team project. Specify this option to maintain the existing site so that other team projects can continue using it.
/collection:URL
Required. Specifies the URI of the team project collection. You must use the following format for the URI: http://ServerName:Port/VirtualDirectoryName/CollectionName
If you do not specify a virtual directory, you must use the following format for the URI:
http://ServerName:Port/CollectionName.
TeamProjectName
Required. The name of the project. If the name includes spaces, enclose it in quotations marks.
 Now, I want to delete the OMG Team Project from my TFS Server.



I am running TFS delete project command line tool using VS command prompt. It will also prompt for confirmation.




Done. Now, as you can see below Team Project OMG is completely deleted from my TFS Server.
  


Thanks
R.karthikeyan

No comments:

Post a Comment