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 conflict response includes a message naming the dependency: Attribute is part of one or more attribute families. Remove it from those families first.

Released under the MIT License.