Destroy a Category
Token-authenticated. HARD-delete — Category does not use the
Discard concern (the archived lifecycle state is the
soft-deprecation path, not delete). Because categories form a
tree, deleting one CASCADE-DESTROYS its descendant categories;
products, media, and pages filed under it are unlinked (their
category_id is nulled), not deleted. Emits a categories.deleted
webhook post-commit so subscribers can react.
Authorizations
Bearer token authentication. Accepts company-admin tokens with
storefront.view for read operations and storefront.update
for writes and scan triggers (legacy per-resource grants like
categories.update / products.view / etc. are still accepted
during the migration), required on every company operation.
Storefront public operations under /api/v202604/{resource} and
/api/v202604/{resource}/{slug} are unauthenticated
(security: []).
Path Parameters
The unique identifier of the category.
Response
Deleted.