delete_content
Permanently delete a content record by content id + content definition id.
delete_content
Permanently delete a content record by content id + content definition id.
Permanently delete a content record through the content route. content_definition_id is the
entity id from the entity map (reference/schema.md). Use it to tear down records created
with create_content.
Safety class: C · API type: admin · Min version: —
ConfinementClass C: the generic content route can delete shared/global content (e.g. language, genre, rating) - non-prod only. When content_definition_id is the asset entity, content_id must be within your run-root anchor (then it is effectively Class A, like delete).
Signatures
def delete_content(sdk, content_id, content_definition_id):
"""Permanently delete a content record; returns None (raises on failure)."""
return sdk.delete_content(content_id, content_definition_id)export async function deleteContent(sdk, contentId, contentDefinitionId) {
// Permanently delete a content record; resolves on success (rejects on failure).
return await sdk.deleteContent(contentId, contentDefinitionId);
}Parameters
| Parameter (Python) | Parameter (JS) | Type | Required | Notes |
|---|---|---|---|---|
sdk | sdk | Nomad_SDK | yes | authenticated client |
content_id | contentId | str | yes | e.g. <content-uuid> |
content_definition_id | contentDefinitionId | str | yes | the entity id from reference/schema.md (Entities table) |
Returns
None — no body on success; raises on failure.
Errors
- 401 unauthenticated
- 404 content record not found
See also: Python ↔ JS naming map · Return shapes.
