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

# Delete Snapshot

Delete a snapshot you no longer need by its snapshot ID. Deleting a snapshot is permanent — sandboxes already created from it are unaffected, but you can no longer create new sandboxes from it.

***

## Delete a snapshot

The call returns `true` if the snapshot was deleted, or `false` if no snapshot with that ID was found.

> [!NOTE]
>
> **Note:** A snapshot may not be deletable while any running sandboxes were created from it. Kill those sandboxes before deleting the snapshot.

```python Python icon="python" theme={"system"}
from novita_sandbox import Novita

novita = Novita()
snapshot_id = "<snapshotID>"
deleted = novita.sandbox.delete_snapshot(snapshot_id)
print("deleted" if deleted else "not found")
```

```js JavaScript & TypeScript icon="js" theme={"system"}
import { Novita } from 'novita-sandbox'

const novita = new Novita()
const deleted = await novita.sandbox.deleteSnapshot('<snapshotID>')
console.log(deleted ? 'deleted' : 'not found')
```

```bash CLI icon="terminal" theme={"system"}
novita snapshot delete <snapshot_id>
```


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