Do you know how to delete a Team Project Collection?
Rules To Better TFS Administration|2fc88664-b2b3-4717-af09-d63b784b57b7
v4.0
Posted at
18/02/2021 6:39 AM by
Tiago Araujo
Rule Intro
When you initially set up a TFS server, you may add a Team Project Collection for testing purposes. After you have confirmed TFS, SharePoint, and Reporting services are all working, you want to remove the test collection you made, but alas, there is no Delete option for project collections.
Page Content

- Figure: There is no way to delete the Team Project Collection from the TFS Administration console
To delete the unwanted Team Project Collection:
- On your TFS server, open an
Administrative Command Prompt
- Change into the TFS Tools Directory. Type:
cd "%programfiles%\microsoft team foundation server 2010\tools"
- Type in the following (replacing [COLLECTION NAME] with the collection you want to delete):
TFSConfig Collection /delete /collectionName:[COLLECTION NAME]

- Figure: Use the TFSConfig tool to delete a Team Project Collection (If you created a SharePoint Portal for your Team Project Collection, you should clean it up as well)
- Open the URL of your Team Project Collections SharePoint portal (eg. northwind.com.au/tfs/TestProjectCollection)
- Select
Site Actions |
Site Settings on the right
- Under the
Site Administration subheading, click on
Delete this site
- Confirm the deletion
If you created a Reports site for your Team Project Collection, you should clean it up as well.
- Open the URL of your Reporting Services page (eg. tfs.ssw.com.au/reports)
- Click on the
TfsReports folder
- Click on the name of the Team Project Collections folder
- Click
Properties in the top navigation
- Click on
Delete
Now your TFS server is nice and clean and fit for production.
{8B845614-283A-469E-91D6-CFC30B15F7EC}
Do you feel this rule needs an update?