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
409body names the blocking groups so you can act on it directly:Attribute is part of one or more attribute families (group IDs: 12, 20, 28). Remove it from those families first.

