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.
To modify or delete an existing workspace or shelveset, you must have the global administer workspaces permission set to Allow.
The following command will delete the
Win2k12R2_John
workspace, which belongs to default collection in TFS. Refer to http://bit.ly/1P6mo6t for more examples on how to use the workspace switch with thetf.exe
command:tf workspace /delete /collection:"http://tfs2015:8080/tfs/defaultcollection" workspacename:"Win2k12R2_John...