> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runtools.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Sandbox

> Permanently destroy a sandbox

## Path Parameters

<ParamField path="id" type="string" required>
  Sandbox ID.
</ParamField>

## Query Parameters

<ParamField query="async" type="boolean">
  Request asynchronous deletion when supported by the backend.
</ParamField>

<ParamField query="stream" type="boolean">
  Request streaming deletion progress when supported by the backend.
</ParamField>

## Response

<ResponseField name="id" type="string">
  Sandbox ID.
</ResponseField>

<ResponseField name="deleted" type="boolean">
  `true` when the sandbox was deleted synchronously.
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -X DELETE https://api.runtools.ai/v1/sandboxes/sandbox-abc123 \
    -H "X-API-Key: $RUNTOOLS_API_KEY"
  ```

  ```typescript SDK theme={null}
  await sandbox.destroy();

  // Or by ID:
  await rt.sandbox.destroy('sandbox-abc123');
  ```
</RequestExample>

<ResponseExample>
  ```json 200 OK theme={null}
  {
    "data": {
      "id": "sandbox-abc123",
      "deleted": true
    }
  }
  ```
</ResponseExample>

<Warning>
  Deleting a sandbox is permanent. Preserve important work in a workspace, repository, or external storage before destroying it.
</Warning>
