This was the only way to solve this problem, which was to delete the user's workspace.
If the error message says "The element $ / ... is locked to retrieve someUser: 1 in the workspace someMachine123." then i use the command:
tf workspace /delete /server:http://machinename:8080/tfs/DefaultCollection someMachine123;someUser:1
There is only one space between the collection URL and someMachine123;someUser:1 .
Please note that I drew attention to the fact that in the error message the user is referred to as someUser:1 , so I imitated this in the command. It is not enough just to run the command with someUser only. I'm not sure what it means: 1, but the bottom line is, imitate the error message.
Please note that the full path to the collection must be specified on the server, which can be found by going to the Administration Team Foundation Server Console-> Tier Application> Collections of the team project, the bottom panel will show the URL for the collection selected in the top panel .
I also had a problem because I accidentally tried to use the plural of workspaces instead of just workspace , because there is a similar command that is plural.
AaronLS Aug 29 2018-12-12T00: 00Z
source share