5.0.6 - Workspace can't be deleted

Hi

A user want to delete two workspaces. Everything is cleanup but when he or i want to delete the workspace we get this:

Failed to delete Session P174-S9: Cannot remove tag T1 of type workspace from session

The workspace has a tag. So when i remove it i get:

Unable to remove tag T1 from workspace W12 in project P174: Could not remove workspace tag T1 from Session P174-S9. Use the sessions endpoint instead.

Then i go to the session list. when i click there i get this:

image

Any idea how to fix that?

We upgraded from 4.7.1 to 5.0.6 over the weekend. The validation found some jobs that needed to be automatically fixed.

Thanks

@wtempel

Any idea? We are a bit stuck as we can’t delete our workspaces. Thanks

Hello, you can use the command

csm cli 'db.workspaces.update_one({"project_uid": "P174", "uid": "W12"}, {"$set": {"tags": []}}).modified_count'

to remove the tag. Once the tag has been removed, you will be able to delete the workspace.

1 Like

Thank you. It worked.

1 Like