Cleaning up unused workspaces and shelvesets in TFS – in progress

It is common for TFVC users to create workspaces to temporarily download files or simply forget to delete unused shelvesets. As a Team Foundation Server Administrator, you will benefit from reducing this clutter. The tf.exe command-line utility has commands for administrating workspaces and shelvesets. In this recipe, you'll learn how to use the tf.exe utility to delete unused workspaces and shelvesets.

Getting ready

To modify or delete an existing workspace or shelveset, you must have the global administer workspaces permission set to Allow.

How to do it…

  1. Launch the developer command prompt in the elevated mode.
  2. The following command will delete the Win2k12R2_John workspace, which belongs ...

Get Microsoft Team Foundation Server 2015 Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.