Skip to content

Catalog Attribute — Delete

Deletes a user-defined attribute.

Endpoint

EndpointMethod
/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

HTTPCause
401 UnauthorizedMissing or invalid Bearer token
403 ForbiddenSystem attribute (is_user_defined = 0)
404 Not FoundThe attribute does not exist
409 ConflictThe attribute is part of one or more attribute families

Notes

  • For bulk deletion, use the Mass Delete endpoint.
  • The 409 body 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.

Released under the MIT License.