# Delete a saved snapshot

> Delete it and stop its daily charge. Sandboxes already started from it keep their disk. This cannot be undone, and its share code stops working.

`DELETE https://api.zavu.dev/v1/sandbox-snapshots/{snapshotId}`

Delete it and stop its daily charge. Sandboxes already started from it keep their disk. This cannot be undone, and its share code stops working.

## Parameters

- `snapshotId` (path, string, required): Saved snapshot ID.

## Responses

### 204

Deleted.

### 401

Unauthorized.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 404

Snapshot not found, or it belongs to another project.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

### 409

`snapshot_saving`: delete it once the save settles.

- `code` (string, required)
- `message` (string, required)
- `details` (object)

## Example

```bash
curl -X DELETE "https://api.zavu.dev/v1/sandbox-snapshots/snapshot_abc123" \
  -H "Authorization: Bearer $ZAVUDEV_API_KEY"
```

```typescript
import Zavudev from "@zavudev/sdk";

const zavu = new Zavudev({ apiKey: process.env.ZAVUDEV_API_KEY });

await zavu.sandboxes.snapshots.delete("snapshot_abc123");
```
