How to delete workspace from TFS Visual Studio | CloudFronts

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 


1. Open Developer Command Prompt for VS2015 from Start menu

2. For getting the list of workspaces associated with user, run below command
tf workspaces /server:https://{TFS}{CollectionName} /owner:"{Owner}"
Explanation, in my case {TFS} is and {Owner} as Jagdish Solanki, Eventually it will look something like this,
tf workspaces /server:{CollectionName} /owner:"Jagdish Solanki"

3. To delete the workspace, run below command 
tf workspace /server:https://{TFS} /delete "{Workspace};{Owner}"
It will looks something like this,
tf workspace /server: /delete "SCM-DEV-1;Jagdish Solanki"
Once the above command is executed, system will prompt you if user has any pending change(s). Are you sure want to delete the workspace? (Yes/No). Enter yes

Share Story :

By continuing to use the site, you agree to the use of cookies. more information

The cookie settings on this website are set to "allow cookies" to give you the best browsing experience possible. If you continue to use this website without changing your cookie settings or you click "Accept" below then you are consenting to this.