Do AI Agents Need a Semantic Layer?Livestream August 26

Skip to main content

MD_DELETE_GUIDE

Preview
This feature is in preview and is subject to change.

Soft-delete a Guide, identified by ID. The version history is preserved internally. Only the Guide's owner can delete it.

Syntax

SELECT * FROM MD_DELETE_GUIDE(id = '<guide_uuid>');

Parameters

ParameterTypeRequiredDescription
idUUIDYesThe Guide's UUID.

Return columns

ColumnTypeDescription
successBOOLEANtrue when the Guide was deleted, false otherwise

References from other Guides to a deleted Guide are left dangling and resolve to not-found.

Examples

Verify the Guide, then delete it:

-- Verify first
SELECT topic, title, current_version
FROM MD_GET_GUIDE(id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890');

-- Then delete
SELECT success
FROM MD_DELETE_GUIDE(id = 'a1b2c3d4-e5f6-7890-abcd-ef1234567890');