Kill Sandbox
Sandbox API
Kill Sandbox
Kill and destroy a sandbox and its underlying sandbox VM.
DELETE
Kill Sandbox
Sets the sandbox state to
killed and instructs the orchestrator to terminate the
VM. This action is irreversible — all in-memory state and filesystem contents are
lost. Returns { "killed": true } on success.
Path Parameters
The sandbox identifier. Format:
sbx-<8 chars>.Example: sbx-a1b2c3d4Response
Always
true when the sandbox was found and the kill was dispatched.Example
Response
The SDK
kill() method wraps this endpoint. Always call it in a try/finally
block to avoid leaving orphaned sandboxes running.Error Responses
| Status | Cause |
|---|---|
401 | Missing or invalid API key |
404 | Sandbox not found |