Skip to main content
DELETE
Delete Category

Authorization

string
required
Bearer token for authentication. Format: Bearer qwoty_your_token

Path Parameters

string
required
Category UUID

Behavior

This endpoint performs a soft delete by setting the deleted_at timestamp on the category. The category will no longer appear in standard API queries but is not permanently removed from the database.
Deletion is blocked if the category is referenced by active discounts. In that case, you will receive a 409 Conflict error. You must first remove or update the discount references before deleting the category.

Examples

Response

boolean
Indicates whether the request was successful
object
Deletion confirmation

Error Responses

Cascade Effects

When a category is deleted:
  • Products linked to this category through category_ids retain the reference (soft delete doesn’t cascade)
  • Child categories (with parent_category_id pointing to this category) are not automatically deleted
  • Price percentage rules scoped to this category remain intact
To permanently remove all traces of a category, you should first: 1. Remove the category from all products (category_ids field) 2. Update or delete all discounts referencing this category 3. Reassign or delete child categories 4. Then delete the category