delete_event

Delete an event record (and its attached live schedule) - the teardown for an event import.

delete_event

Delete an event record (and its attached live schedule) - the teardown for an event import.

Delete an event record (its attached live schedule goes with it). This is the teardown for an event import - the fail-closed cleanup for any event created via create_content + update_content.

Resolve the content_id by searching the event CD by slug when you only hold the business key; content_definition_id is the event entity id from reference/schema.md.

Safety class: C · API type: admin · Min version: -

📘

Confinement

Class C: deletes a global event record (no folder anchor) - non-prod only. This is the fail-closed teardown for any event created during an import (create_content + update_content).

Signatures

def delete_event(sdk, content_id, content_definition_id):
    """Delete an event (and its live schedule); returns None. Class C teardown."""
    return sdk.delete_event(content_id, content_definition_id)
export async function deleteEvent(sdk, contentId, contentDefinitionId) {
    // Delete an event (and its live schedule); returns null. Class C teardown.
    return await sdk.deleteEvent(contentId, contentDefinitionId);
}

Parameters

Parameter (Python)Parameter (JS)TypeRequiredNotes
sdksdkNomad_SDKyes
content_idcontentIdstryesthe event contentId from create_content (resolve it by searching the event CD by slug)
content_definition_idcontentDefinitionIdstryesthe event entity id from reference/schema.md

Returns

None - returns None; the event is removed as a side effect (async). Re-search by slug to confirm it is gone.

Errors

  • 401 unauthenticated
  • 404 event not found

See also: Python ↔ JS naming map · Return shapes.