Skip to content

Attribute Family — Delete (GraphQL)

Deletes an attribute family. The id argument is the family IRI (/api/admin/catalog/families/{id}). The mutation returns a snapshot of the deleted family.

Two rules block the delete: the store must always keep at least one family, and a family that any product still belongs to cannot be removed. Reassign or remove those products first.

TIP

See the Attribute Families overview for how families relate to attributes and products.

ConditionMessage
Family is the last one in the storeAt least one attribute family is required.
One or more products still use the familyCannot delete — attribute family is in use by N product(s).
Unknown idAttribute family not found.

All admin operations require an admin Bearer token — see Authentication.

Released under the MIT License.