Using Developer Command Prompt for VS 2019
I am able to see a list of all my workspaces.
tf workspaces /collection:"https://dev.azure.com/[ORGANIZATION]" /owner:*
I can then delete my local workspaces using:
tf workspace /delete [WORKSPACE];"[OWNER]"
If I launch Visual Studio and then rerun first command the workspace returns.
The same thing occurs if I delete the workspace from the VS UI. It will reappear as soon as I click map & get
to create a new workspace of same name just deleted.
NOTES
Prior to relaunching Visual Studio I also tried:
- Clearing the cache folder here:
C:\Users\[NAME]\AppData\Local\Microsoft\Team Foundation\8.0\Cache
- Deleting all my local workspace files here:
C:\Users\[NAME]\source\Workspaces
EDIT
After some testing I believe the issue may relate to an old workspace that had the same name. I cannot delete the old workspace because when I try to delete old non local databases I receive:
ERROR:
The workspace [WORKSPACE];[OWNER] does not exist.
I now believe the old workspace is a trace from when I migrated to Azure from old TFS.
QUESTIONS
- How can I delete ALL workspaces?
- Can workspaces be deleted from the Azure Dev Ops portal?
- How can you delete non local workspaces?