Skip to main content

force_delete_workspace

Function force_delete_workspace 

Source
pub fn force_delete_workspace(workspace_id: &str) -> Result<()>
Expand description

Force-delete a workspace whose active sessions have already been destroyed.

Drops the workspace’s detached drafts and the workspace row in one immediate transaction that re-checks for active sessions, so a session created while the destruction ran refuses the deletion instead of losing the drafts. Inactive session records are global history and are preserved, exactly as in delete_workspace.