How to: Remove a Workspace
You can use the Manage Workspaces dialog box or the tf workspace command to remove a Team Foundation version control workspace. A workspace is one or more client-side folders on the local disk that are mapped to version-controlled folders on the Team Foundation version control server.
Required Permissions
To perform these procedures, you must own the workspace or have the Administer workspaces permission set to Allow. For more information, see Team Foundation Server Permissions.
To remove a workspace, perform the following procedures:
Removing a Workspace by Using the Manage Workspaces Dialog Box
Removing Another User's Workspace by Using the Tf Workspace Command
Removing a Workspace by Using the Remove Mapping Option
Removing a Workspace by Using the Manage Workspaces Dialog Box
Use the following procedure to remove a workspace by using either Team Foundation Server 2008 or the Service Pack 1 edition of Team Foundation Server 2008.
To remove a workspace by using Source Control Explorer
On the File menu, point to Source Control, and then click Workspaces.
In the Manage Workspaces dialog box, under the Name column, select the workspace that you want to remove, and then click Remove.
In the Confirmation dialog box, click OK.
Removing Another User's Workspace by Using the Tf Workspace Command
Use the following procedure to remove another user's workspace by using either Team Foundation Server 2008 or the Service Pack 1 edition of Team Foundation Server 2008.
To delete another user's workspace by using the command prompt
Click Start, point to All Programs, point to Microsoft Visual Studio 2008, point to Visual Studio Tools, and then click Visual Studio Command Prompt.
Type the following command and replace the arguments with the appropriate parameter information for your needs:
tf workspace /delete OtherWorkspace;DOMAIN\OtherUser
For more information, see Workspace Command.
Removing a Workspace by Using the Remove Mapping Option
Use the following procedure to remove a workspace by using the Service Pack 1 edition of Team Foundation Server 2008 and Team Explorer.
Important Note: |
---|
This functionality is available only with the Service Pack 1 edition of Team Foundation Server 2008. |
To remove a workspace by using the Remove Mapping option
In Source Control Explorer, right-click a folder that is mapped to a local folder, and then click Remove Mapping.
In the Remove Mapping dialog box, click Remove Mapping.
The mappings between the folder, the folder's contents, and your computer are removed.
Note
You can also change the location of the local folder by using the Remove Mapping dialog box. For more information, see How to: Modify a Workspace.
See Also
Concepts
Working with Version Control Workspaces