Catalog Attribute — Delete
Deletes a user-defined attribute.
Endpoint
| Endpoint | Method |
|---|---|
/api/admin/catalog/attributes/{id} | DELETE |
{id} must be a positive integer (requirements: ['id' => '\\d+']).
Response
200 OK with a confirmation message:
json
{ "message": "Attribute deleted successfully." }Errors
| HTTP | Cause |
|---|---|
401 Unauthorized | Missing or invalid Bearer token |
403 Forbidden | System attribute (is_user_defined = 0) |
404 Not Found | The attribute does not exist |
409 Conflict | The attribute is part of one or more attribute families |
Notes
- For bulk deletion, use the Mass Delete endpoint.
- The 409 conflict response includes a message naming the dependency:
Attribute is part of one or more attribute families. Remove it from those families first.

