To delete an existing workspace, you must be the owner or have the global Administer workspaces permission set to Allow.
You could also try to use onwer uniq ID instead of name
tf vc workspaces ws_3_3 /computer:* /format:xml /collection:https://dev.azure.com/patricklu/
ws_3_3
is your workspace name which want to delete, collection just type your collection url
In the prompt up window type your address to connect to the url(If there is).
After this it will return some information such as below:
With info of owner uniq ID
Then you just need to use tf workspace /delete the command, in my sample it’s using:
tf workspace /delete ws_3_3;fb46f066-9122-4342-94c4-93b7526a3545
Simply type yes, it will delete the workspace. "Unable to determine the source control server" This may caused by you didn't include the collection url when you try to delete a workspace not locally.
1. How can I delete ALL workspaces?
There is not a command to delete all workspaces in company, you have to do it one by one.
2. Can workspaces be deleted from the Azure Dev Ops portal?
No, you couldn't do this. You should either use command line or through Visual Studio UI
as below:
Hope this helps.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…