--- url: https://docs.youcan.shop/store-admin/categories/delete.md --- # Delete a Category Endpoint: `https://api.youcan.shop/categories/{id}` Method: `DELETE` ## Required Scopes * `delete-categories` ## Response \[200] OK ```json { "message": "category successfully deleted", "http_code": 200, "code": "DELETED", "type": "success" } ``` \[404] Not Found ```json { "status": 404, "detail": "Category not found", "meta": [] } ``` \[422] Unprocessable Entity — attempting to delete the default category ```json { "status": 0, "detail": "cannot delete default category", "meta": [] } ```