# MD_DELETE_DIVE
> Permanently delete a Dive by ID.
Permanently deletes a [Dive](/key-tasks/ai-and-motherduck/dives) and all its versions. This action cannot be undone.

## Syntax

```sql
SELECT * FROM MD_DELETE_DIVE(id = 'your-dive-uuid'::UUID);
```

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `id` | `UUID` | Yes | The unique identifier of the Dive to delete |

## Return columns

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

## Examples

Delete a Dive:

```sql
SELECT * FROM MD_DELETE_DIVE(id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890'::UUID);
```

## Errors

Returns an error if the Dive does not exist.

## Related

- [`MD_LIST_DIVES`](../md-list-dives) — List Dives to find the ID
- [`delete_dive` MCP tool](/sql-reference/mcp/delete-dive) — AI assistant 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%2Fai-functions%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.
