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
| Operation | Type | Purpose |
|---|---|---|
deleteAdminCategory | Mutation | Delete a category |
Errors
| Condition | Message |
|---|---|
Root category (id=1) or a channel root_category_id | Root and channel-root categories cannot be deleted. |
| Unknown id | Category not found. |
For bulk deletion, use createAdminCategoryMassDelete.

