In the process of my Team System testing, I ended up with a bunch of unnecessary team build types (and corresponding builds for each type) in the Team Explorer for our Demo project. Unfortunately, there's no obvious way to delete these! I found this forum thread which describes how to remove both.
First, map the TeamBuildTypes folder into your workspace. You can access your workspace via the File, Source Control, Workspaces menu:
Once you've mapped the folder, bring up the source control explorer, expand the new folder, and start deleting the folders that correspond to each build type:
Commit your delete and you'll remove the build types. But what about the builds themselves? Unfortunately, you'll have to delete each individual build manually via the tfsbuild command line tool:
C:\>tfsbuild delete http://teamsystem:8080/ demo test3_20060127.1
Microsoft (R) TfsBuild Version 8.0.0.0
for Microsoft (R) Visual Studio 2005 Team System
(C) Copyright 2006 Microsoft Corporation. All rights reserved.
All data including test results and the build for test3_20060127.1 will be permanently
deleted. Do you want to continue (Y/N)?y
Deleting test3_20060127.1... Done
TF42047: The build data was deleted. The drop location
\\wumpus\public\test3_20060127.1
does not exist or is inaccessible and could not be deleted.
(You can ignore the above error for the drop location, as that data was previously deleted long ago.)
The process is a little tedious, but now all traces of the demo builds are gone.