MD_DELETE_DIVE
Deletes a Dive, 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
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
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_GET_DIVE, or any other Dive function.
Related
MD_LIST_DIVES— List remaining Dives.delete_diveMCP tool — AI-agent equivalent.