categoryDelete
Delete a category by its identifier.
Permanently removes the specified category from the system. This operation cannot be undone and may affect product associations and category hierarchy.
Possible errors:
- DELETE_CATEGORY_ERROR: Failed to delete category due to system constraints or dependencies
- CATEGORY_NOT_FOUND_ERROR: Category with the specified ID does not exist
- UNAUTHENTICATED: Invalid or missing authentication
- FORBIDDEN: Insufficient permissions to delete categories
AUTH: Role=[product.OWNER] OR ('user is authenticated')
categoryDelete(
categoryId: Float!
): Boolean!
Arguments
categoryDelete.categoryId
● Float!
non-null scalar
Unique identifier of the category to delete.
Must be a positive integer representing a valid category ID in the system.
Type
Boolean
scalar
The Boolean
scalar type represents true
or false
.