Skip to content

Catalog Attribute — Mass Delete (GraphQL)

Bulk-deletes a batch of user-defined attributes in a single mutation. indices is the list of attribute ids to delete. The batch is pre-validated: if any id belongs to a system attribute (isUserDefined = 0), the entire batch is rejected and nothing is deleted. Non-existent ids are silently skipped and do not appear in deleted.

TIP

See the Attributes overview for how attributes, options, and families fit together.

Input

FieldTypeNotes
indices[Int!]!Attribute ids to delete

A batch containing a system attribute returns an errors[] entry System attributes cannot be deleted. and no row is touched.

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

Released under the MIT License.