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

# Delete Preset

> Delete a saved preset with client.delete_preset().

Deletes a preset by `id`.

```python theme={null}
client.delete_preset(preset.id)
```

## Signature

```python theme={null}
client.delete_preset(preset_id, *, timeout=NOT_GIVEN) -> None
```

| Parameter | Type | Description |
| :- | :- | :- |
| `preset_id` | `str` | **Required.** The preset's `id`, not its `key` |

Returns `None`.

> [!WARNING]
>
> URLs that reference the preset start failing — `?p=thumb` has nothing to resolve to.
> Repoint them at an explicit transform before deleting, or recreate the key.

Find the `id` for a key with [`list_presets()`](https://docs.dreep.cloud/python-sdk/presets/list-presets):

```python theme={null}
presets = {p.key: p for p in client.list_presets()}
client.delete_preset(presets["thumb"].id)
```

## Errors

| Error | Cause |
| :- | :- |
| `DreepNotFoundError` | No such preset, or a `key` was passed instead of an `id` |


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