Choosing Team Foundation Server Maintenance Tools
Team Foundation Server includes tools for maintaining server data. For example, you can use the tf command-line utility to remove old source control shelvesets. A shelveset is a set of changes, not yet committed, that are located in the server. You can also use the database defragmentation tools available as part of SQL Server.