Building a Data Stack Live with AI AgentsLivestream August 18

Skip to main content

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

ParameterTypeRequiredDescription
idUUIDYesIdentifier of the Dive to delete.

Return columns

ColumnTypeDescription
successBOOLEANtrue 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.