Categories
Delete Category
Delete a category by ID
DELETE
This endpoint deletes an existing category by ID. Requires authentication and admin role.
Authentication
Bearer token for authentication. Must have admin role.
Path Parameters
The unique identifier of the category to delete
Response
Returns a 204 No Content status code on successful deletion with no response body.Error Responses
Notes
- Deleting a category may fail if there are products associated with it, depending on your database constraints
- This operation is irreversible
- Consider using a soft delete approach in production environments