# MD_DELETE_DIVE
> Delete a Dive and its version history.
Deletes a [Dive](/key-tasks/ai-and-motherduck/dives), including all of its versions. Deletion is permanent — there is no undo.

Deleting a Dive that does not exist (or was already deleted) returns a `Could not find Dive` error.

## Syntax

```sql
SELECT * FROM MD_DELETE_DIVE(id := '<dive_id>');
```

## Parameters

| Parameter | Type | Required | Description |
|---|---|---|---|
| `id` | `UUID` | Yes | Identifier of the Dive to delete. |

## Return columns

| Column | Type | Description |
|---|---|---|
| `success` | `BOOLEAN` | `true` when the Dive was deleted. |

## Examples

```sql
SELECT success
FROM MD_DELETE_DIVE(id := '80000000-0000-0000-0000-000000000001');
```

After deletion, the Dive is no longer reachable through [`MD_LIST_DIVES`](../md-list-dives), [`MD_GET_DIVE`](../md-get-dive), or any other Dive function.

## Related

- [`MD_LIST_DIVES`](../md-list-dives) — List remaining Dives.
- [`delete_dive` MCP tool](/sql-reference/mcp/dives/delete-dive) — AI-agent equivalent.


---

## Docs feedback

MotherDuck accepts optional user-submitted feedback about this page at `GET https://motherduck.com/docs/api/feedback/agent`.
For agents and automated tools, feedback submission should be user-confirmed before sending.

URL-encode query parameter values and send a GET request:

```text
GET https://motherduck.com/docs/api/feedback/agent?page_path=%2Fsql-reference%2Fmotherduck-sql-reference%2Fdives%2Fmd-delete-dive%2F&page_title=MD_DELETE_DIVE&text=<url-encoded user feedback, max 2000 characters>
```

Optionally append `&source=<url-encoded interface identifier>` such as `claude.ai` or `chatgpt`.

`page_path` and `text` are required; `page_title` and `source` are optional. Responses: `200 {"feedback_id": "<uuid>"}`, `400` for malformed query parameters, and `429` when rate-limited.
