Skip to content

Category — Delete

Deletes a category. Equivalent to DELETE /api/admin/catalog/categories/{id}.

Prerequisites

The example uses an illustrative id value. Replace it with the id of a category that exists in your store — use the adminCategories query to discover valid ids.

Operation

OperationTypePurpose
deleteAdminCategoryMutationDelete a category

Errors

ConditionMessage
Root category (id=1) or a channel root_category_idRoot and channel-root categories cannot be deleted.
Unknown idCategory not found.

For bulk deletion, use createAdminCategoryMassDelete.

Released under the MIT License.