Skip to content

Category — Delete (GraphQL)

Deletes a category. The only input field is id (the category IRI). The mutation is refused for the root category and for any category referenced as a channel's root category — those return an error and the record is kept. The payload returns a snapshot of the deleted record's scalar fields.

TIP

See the Categories overview for how the menu works.

Errors

ConditionMessage
Root category or a channel root categoryRoot and channel-root categories cannot be deleted.
Unknown idCategory not found.

For bulk deletion, use createAdminCategoryMassDelete.

All admin operations require an admin Bearer token — see Authentication.

Released under the MIT License.