Share via


TFSDeleteProject

Use TFSDeleteProject to delete a team project from Team System 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.

You can find the TFSDeleteProject command-line utility in <drive >\Program Files\Microsoft Visual Studio 8\Common7\IDE on Team Explorer client computer.

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. For more information, see Team Foundation Server Permissions and Team Foundation Server Default Groups, Permissions, and Roles.

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

Parameters

Argument Description

Team project name

The name of the project. Use quotation marks if there are spaces in the name.

servername

The server name. Use quotation marks if there are spaces in the name.

Option Description

/q

Use the quiet mode. Do not prompt the user for confirmation.

/server: servername

The name of the application-tier Team Foundation Server where the team project is located. This is required in multi-server environments.

/force

The program should continue even if some parts cannot be deleted.

Remarks

You must be connected to Team Foundation Server before using TFSDeleteProject.

Example

The following command deletes the team project StoreFront on the Team Foundation server AdventureWorks1 and from Team Explorer.

> TFSDeleteProject /server:AdventureWorks1 StoreFront

See Also

Tasks

How to: Add or Remove a Team Project
Troubleshooting Team Foundation Server Command-Line Tools

Other Resources

Managing Permissions