Basic Request
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
sandbox_id | string | Yes | Sandbox ID (UUID) |
context_id | string | Yes | Context ID (UUID) |
Response
Response Fields
| Field | Type | Description |
|---|---|---|
message | string | Success message |
context_id | string | ID of the deleted context |
When to Delete Contexts
- Task completion: When analysis or processing is finished
- Memory cleanup: Free up resources from unused contexts
- Error recovery: Remove corrupted or problematic contexts
- Sandbox cleanup: Before terminating sandbox
Example: Cleanup Workflow
Safety Notes
- Permanent deletion: Context and all variables are permanently lost
- No recovery: Deleted contexts cannot be restored
- Active executions: Ensure no code is currently running in the context

