Pranav Kaushik
Pranav Kaushik

Reputation: 203

How to delete all TFS workspaces of a user in one go

I want to create a batch file that deletes all TFS workspaces of a user. This will be used in scenarios when a person is leaving the organization.

Is there a command in TFS which allows me to delete all workspaces of a user in one go? I do not want to first get workspaces and then delete them one by one, because then it will require manual intervention.

if something like this could be possible C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>tf workspace /server:<servername> /delete *;<domain>\<username>

The command above does not work.

Thanks in advance.

Upvotes: 2

Views: 8962

Answers (2)

Bill Young
Bill Young

Reputation: 139

The current version of Sidekicks (5.0) allows you to delete multiple workspaces. I just purged 4218 workspaces.

Upvotes: 2

Betty
Betty

Reputation: 9189

I believe Team Foundation Sidekicks from Attrice can do this

Upvotes: 4

Related Questions