how to remove TFS workspace mapping for another user

后端 未结 9 1490
梦如初夏
梦如初夏 2020-12-04 19:13

I am using Visual Studio 2010. Some months back I was using some \'ABC\' TFS user to connect to TFS and mapped some folders on my local drive. Now my previous user \'ABC\' i

9条回答
  •  一整个雨季
    2020-12-04 19:47

    Steps to delete workspaces from the TFS server:

    1. Open Visual Studio Developer Command Prompt.

    2. Goto Program Files (x86) folder, depending on the installed visual studio select "Microsoft Visual Studio 12.0" folder. Here this I have selected it because I am having Visual Studio 2013 installed on my machine. Add this path in the command prompt. Add like "cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE"

      Note: If you have an access of the TFS server from the network then you can try it from any machine where Visual Studio has been installed or from the same TFS machine server if it has Visual Studio there.

    3. Check a list of workspaces under specific collection. Type below command to get the workspaces under one collection.

      cd C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\tf workspaces /server:http://{TFSServername}:8080/tfs/{CollectionName} /owner:*

      • In the above command replace {TFSServername} this with your TFS servername or the Server IP.
      • In the above command replace {CollectionName} this with actual TFS Collection Name.
    4. How to remove workspaces under specific collection. Check below command for the same.

      • tf workspace /server:http://{TFSServername}:8080/tfs//{CollectionName} /delete “{workspacename};{owner}”
      • Replace {workspacename} this with "Workspacename” which is there in the list of workspaces.
      • Replace {CollectionName} this with TFS Collection Name.

        E.g. tf workspace /server:http://{TFSServername}:8080/tfs//{CollectionName} /delete {Enter Exact Workspacename};{Enter ExtactOwnerName}

提交回复
热议问题