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

# Delete a snapshot

> Retire a saved snapshot so it can no longer create machines.

## Authentication

Send your scoped bearer token in the `Authorization: Bearer <BEAD_TOKEN>` header, or send your API key in `X-API-Key`.

## Parameters

**id** `string` *required*

Snapshot template identifier returned by capture.

```bash cURL theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
curl --request DELETE \
  --url "https://api.bead.run/snapshots/$SNAPSHOT_ID" \
  --header "X-API-Key: $BEAD_API_KEY"
```

```python Python theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
# snapshot is returned by Sandbox.snapshot.
snapshot.delete()
```

```typescript TypeScript theme={"theme":{"light":"github-light","dark":"github-dark-default"}}
// snapshot is returned by Sandbox.snapshot.
await snapshot.delete();
```

## Response

### 204

Snapshot retired; no response body.

No response body.

## Errors

| Status | Meaning |
| - | - |
| 401 | Authentication credential is missing or rejected. |
| 403 | The credential lacks the required scope. |
| 404 | The requested resource does not exist or is outside your organization. |
| 429 | Request or resource admission limit exceeded (`admission_limit`; trial capacity can return `free_capacity_full`). Follow limit.next\_action and Retry-After when present. |
| 503 | Service or persistence is temporarily unavailable. |


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.