Deleting troublesome Live sessions

A lot of our users have developed bad practices in using cryoSPARC Live which has left me with a data management problem. I have a number of live sessions where

  • The session is paused, not completed
  • The raw data has been deleted from our data storage server
  • The user may have attempted, unsuccessfully, to clear or delete the session or some or all jobs belonging to the session.

Basically I have a big mess, and the users want me to delete these Live sessions but not the projects containing them.

Is this possible? I found an earlier question where the answer given was

Deleting the corresponding workspace in the regular cryoSPARC interface is the recommended way to delete an unwanted, inactive Live session. This operation should remove the session from the Live interface and also delete session-related data from the filesystem.

However, I’ve tried this with one workspace with no success - the workspace still remains in the GUI (although with only 1 job) and the data still remains in the ‘Sx’ directory inside the project.

What’s the best way of going about this?

Edit: v4.6.2 because I haven’t had approval to update to 4.7 yet

I seem to have had some level of success finally.

I used cryosparcm icli to mark the sessions as completed with (for example) rtp.mark_session_completed("P20", "S3")

I could then compact or delete the session, or use the session data page to delete data. It took some patience, and in some cases it seemed that restarting cryoSPARC was required to get it to actually display the changes.