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

# Destroy a sandbox

> Destroy the sandbox and free its resources.

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

<RequestExample>
  ```bash curl theme={null}
  curl -X DELETE https://api.podflare.ai/v1/sandboxes/$SID
  ```

  ```python Python theme={null}
  sbx.close()
  # or, automatically on context-manager exit:
  with Sandbox() as sbx:
      ...  # destroyed on exit
  ```

  ```ts TypeScript theme={null}
  await sbx.close();
  ```
</RequestExample>

<ResponseExample>
  ```http 204 No Content theme={null}
  ```
</ResponseExample>

## What happens

The sandbox's microVM is stopped, its working directory is cleaned up,
and its id is removed from the server's active set. Destroying an
already-destroyed id is a no-op (200 or 204).

## Typical time

\~30–50 ms end-to-end.
