Delete a business category
API operation: Open the endpoint in Scalar
Use DELETE /business/{business_id}/categories/{category_id} to delete a category. The operation documented here is Category.delete.
The documented schema requires administrator or business-manager authentication and verifies the category/business context. Deletion is destructive and can affect nested catalog organization; resolve both IDs before sending a request.
const response = await ordering.businesses(businessId).categories(categoryId).delete()
This SDK syntax is historical. Confirm the package and version before using it.
OpenAPI reference
Operation: DELETE /business/{business_id}/categories/{category_id}
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
business_id | integer | Yes | — |
category_id | integer | Yes | — |
Responses
| Code | Description |
|---|---|
| 200 | OK (Envelope) |
| 400 | Bad Request (ErrorResponse) |
| 401 | Unauthorized |
| 404 | Not Found |
| 429 | Too Many Requests (ErrorResponse) |
| 500 | Internal Server Error (ErrorResponse) |
| 503 | Service Unavailable (ErrorResponse) |