Reputation: 8651
Visual Studio 2017's "Find Shelvesets" TFS command displays:
Results (showing 100 of 392)
How do I access the other 292 items?
Upvotes: 2
Views: 4398
Reputation: 489
Use
tf vc shelvesets
and the create a file containing all the shelveset names (with quotations "" around each)
Then run
Get-Content .\shelvesets.txt | Foreach-object { Write-Host "." -NoNewline; Invoke-Expression "tf vc shelve /delete $_ /noprompt"}
This will run through each shelveset in the list and delete it, or spit out any error messages.
Upvotes: 0
Reputation: 114701
Either use the commandline to list them all:
tf vc shelvesets
And
tf vc shelve /delete
to delete one.
Or download the TFS Sidekicks which provides a dedicated UI for a number of clean-up actions, including old shelvesets.
Upvotes: 6