Unable to delete [workspace]: Session is compacting, must be paused, completed or compacted"

I’m trying to help a researcher tidy up before he moves on to a new position.

One workspace cannot be deleted and generates the error “Unable to delete P28 W2: Session P28-S1 is compacting; must be paused, completed or compacted”.

The live session was marked as completed last year. He doesn’t remember compacting it, but viewing the live session shows no micrograph thumbnails or other data.

Is there a way (possibly using the CLI) to fix this so we can delete the workspace?

v5.0.2 running on Ubuntu 22.04 LTS on a standalone workstation.

Hi @mokca ,

From the CLI, you can do the following to set the status to compacted

cryosparcm cli "db.workspaces.update_one({"project_uid": "P28", "session_uid": "S1"}, {"$set": {"status": "compacted"}})"

After this, you can re-run the deletion.

Thanks! This worked.