Soft delete a session subtree (events retained)
Soft deletes the session subtree: it is stopped if still running, the sandbox it owns is stopped (a thread’s or shared sub-agent’s sandbox belongs to another session and stays), and its rows disappear from reads. A stopped sandbox’s workspace files are erased within the sandbox retention period: the longer of its stopped retention (by default about six hours for the session sandbox and about two days for its named sandboxes) and 14 days for saved copies, both counted from the stop, plus up to a day; about 15 days by default and at most about 30 days. A named sandbox that failed (crashed or was evicted), and a session’s own sandbox that failed when the delete’s stop never reached it, are not stopped, so their files stay until a purge. Purging a session erases its workspace files immediately, and the copies Evaluations of it made, except an untraced copy (made before Evaluation copies were tagged, or during a rollback to an earlier Managed Agents version), which that Evaluation’s own purge or retention erases. An active Evaluation or one with unfinished clone cleanup returns retryable 409 evaluation_deletion_pending and remains visible; retry when cleanup finishes. A pending hard-stop sandbox cleanup returns retryable 409 conflict; retry after cleanup finishes, and seek operator attention if it remains pending. The transcript is retained, so this is not a data-erasure operation and cannot be undone through this API.
Authorizations
Headers
Path Parameters
Response
No Content