Thursday, 11 February 2021

Find and Delete workspace from TFS through Visual studio command prompt

 

How to delete workspace from TFS Visual Studio

In this blog, we will see how we can delete any of the TFS workspace which is assigned to different user


Even if tried to remove/delete the workspace from Visual Studio, We’re unable to map existing workspace to new user.  

In such scenario, It is necessary to delete the workspace explicitly while getting the error as below 

"The working folder 'Workspace_Folder_Local_Path' is already in use by  the workspace : on computer

Solution: 

1. Open Developer Command Prompt for VS2015 from Start menu Or, type the word Command in search box and select "VS2015 x86 x64 Cross Tools Command Prompt".


2. For getting the list of workspaces, run the below command
tf workspaces

3. For deleting a workspace, run the below command

Syntax: 

TF workspace /delete workspacename;owner_id

Real command: 

TF workspace /delete xxx-Dev-4;treddi




Happy DAXing...

No comments:

Post a Comment