categoryDelete
Remove a category from the catalogue.
A category can only be deleted when it has no child categories and no products or clusters assigned to it.
Possible errors:
- CATEGORY_NOT_FOUND: The supplied identifier did not match any category.
- CATEGORY_NOT_EMPTY: The category still has child categories or assigned products and clusters.
- CATEGORY_CHANNEL_ROOT: A channel-root category cannot be deleted.
AUTH: Role=[product.OWNER]
categoryDelete(
categoryId: Float!
): Boolean!
Arguments
categoryDelete.categoryId ● Float! non-null scalar
Numeric identifier of the category to delete.
Type
Boolean scalar
The Boolean scalar type represents true or false.