|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here. ArchiveDisclaimer|
Use TFSDeleteProject to destroy a team project from Visual Studio Team System Team Foundation Server when the project is no longer needed on the Team Foundation Server.
When you run TFSDeleteProject, the team project is permanently destroyed and cannot be recovered.
You can find the TFSDeleteProject command-line utility in <drive >\Program Files\Microsoft Visual Studio 9.0\Common7\IDE on any computer where Team Explorer is installed.
Even if you are logged on with administrative credentials, you must open an elevated Command Prompt to perform this function on a server that is running Windows Server 2008. To open an elevated Command Prompt, click Start, right-click Command Prompt, and click Run as Administrator. For more information, see the Microsoft Web site.
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.
Team project name
The name of the project. Use quotation marks if there are spaces in the name.
The server name. Use quotation marks if there are spaces in the name.
Use the quiet mode. Do not prompt the user for confirmation.
The name of the application-tier Team Foundation Server where the team project is located. This is required in multi-server environments.
The program should continue even if some parts cannot be deleted.
The following command destroys the team project StoreFront on the Team Foundation Server AdventureWorks1 and from Team Explorer.
> TFSDeleteProject /server:AdventureWorks1 StoreFront