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.

See the Attribute Families overview for how this menu works.

ConditionMessage
Family is the default oneThe default attribute family cannot be deleted.
One or more products still use the familyCannot delete — attribute family is in use by N product(s).
Unknown idAttribute family not found.

Released under the MIT License.