Introducing Flights: agent-native data pipelines in MotherDuckJoin the livestream

Skip to main content

MD_DELETE_DIVE

Permanently deletes a Dive and all its versions. This action cannot be undone.

Syntax

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

Parameters

ParameterTypeRequiredDescription
idUUIDYesThe unique identifier of the Dive to delete

Return columns

ColumnTypeDescription
successBOOLEANtrue if the Dive was deleted

Examples

Delete a Dive:

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

Errors

Returns an error if the Dive does not exist.