Destroy a sandbox
destroy_sandboxDelete a sandbox and its files, sign-in data, and optionally logs or traces. Use it to clean up local or cloud sandboxes, confirming first because removal cannot be undone.
Instructions
Delete a sandbox: its files and any sign-in made inside it. Cloud: its recorded traces are deleted too unless keep_traces is true, which only paid plans honour (traces then stay until the plan's retention date). Local: its captured logs are moved to ~/.raytrace/archive unless delete_logs is true. This cannot be undone; confirm with the user first.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "<id>"
},
"name": "destroy_sandbox"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | A cloud sandbox's id (rtp-...), or a local sandbox's name, from list_sandboxes. | |
| delete_logs | No | Local: delete the logs captured in the sandbox (its Claude Code sessions and recorded commands) instead of archiving them. Defaults to false. | |
| keep_traces | No | Cloud: keep the sandbox's recorded traces until the retention date (paid plans). Defaults to false. | |
| upload_first | No | Local: upload the sandbox's evidences to RayTrace cloud before deleting it (needs a sign-in). Defaults to false. |