title: How to delete all TFS workspaces of a user in one go
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>if something like this could be possible
  C:\Program Files (x86)\Microsoft Visual Studio 10.0\VC>tf workspace /server:&lt;servername&gt; /delete *;&lt;domain&gt;\&lt;username&gt;</p>
  
  <p>The command above does not work.</p>
  
  <p>Thanks in advance.</p>