MCPcopy Create free account
hub / github.com/OpenHands/OpenHands / destroySession

Function destroySession

scripts/mars-api.mjs:312–314  ·  view source on GitHub ↗

* End a session for good: harness-api tears down its sandbox and * checkpoints. 204 on success; 409 while a checkpoint, fork or rollback * holds the session (retry later); 423 for a staff-locked session.

(sessionId)

Source from the content-addressed store, hash-verified

310 * holds the session (retry later); 423 for a staff-locked session.
311 */
312 async destroySession(sessionId) {
313 await request("DELETE", `${SESSIONS_PATH}/${sessionId}`);
314 },
315
316 /**
317 * Soft-delete an Agent Config. harness-api does not check for live

Callers

nothing calls this directly

Calls 1

requestFunction · 0.70

Tested by

no test coverage detected