Deleting a team project from Team Foundation Server

You can use the TFSDeleteProject command to delete a team project from Team Foundation Server when the project is no longer needed on the Team Foundation Server.

When you run TFSDeleteProject, the system places the source control data in a deleted state in the operational store. It does not actually remove the data from the database, nor does it reclaim the disk space. Also, the system does not remove the warehouse data originating from the team project.

If you have installed Team Explorer for Team Foundation Server 2005, you can find the TFSDeleteProject command-line utility in <drive >\Program Files\Microsoft Visual Studio 8\Common7\IDE on Team Explorer client computer.

If you have installed Team Explorer for Team Foundation Server 2008, you can find the TFSDeleteProject command-line utility in <drive >\Program Files\Microsoft Visual Studio 9\Common7\IDE on any computer where Team Explorer is installed.

Required Permissions

To use the TFSDeleteProject command, you must be a member of the Team Foundation Administrators security group or the Project Administrators security group.

The syntax for the TFSDeleteProject command is as follows:

TFSDeleteproject [/q] [/force] [/server:servername] team project name

Example

The following command destroys the team project MyTeamProject on the Team Foundation Server TFS and from Team Explorer.

TFSDeleteProject /server:TFS MyTeamProject

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: