TFSDeleteProject
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.
Note
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.
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 destroys the team project StoreFront on the Team Foundation Server AdventureWorks1 and from Team Explorer.
> TFSDeleteProject /server:AdventureWorks1 StoreFront
See Also
Tasks
Troubleshooting Team Project Creation and Deletion
How to: Add or Remove a Team Project
Troubleshooting Team Foundation Server Command-Line Tools