Skip to main content

attributeDelete Mutation

Deletes an attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES for `PRODUCT_TYPE` attributesMANAGE_PAGE_TYPES_AND_ATTRIBUTES for `PAGE_TYPE` attributesMANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES for `CUSTOMER_TYPE` attributes

Triggers the following webhook events:

  • ATTRIBUTE_DELETED (async): An attribute was deleted.
attributeDelete(
externalReference: String
id: ID
): AttributeDelete
Details
type AttributeDelete {
attributeErrors: [AttributeError!]! @deprecated
errors: [AttributeError!]!
attribute: Attribute
}

Arguments

externalReference ● String

External ID of an attribute to delete.

id ● ID

ID of an attribute to delete.

Type

AttributeDelete

Deletes an attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES for `PRODUCT_TYPE` attributesMANAGE_PAGE_TYPES_AND_ATTRIBUTES for `PAGE_TYPE` attributesMANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES for `CUSTOMER_TYPE` attributes

Triggers the following webhook events:

  • ATTRIBUTE_DELETED (async): An attribute was deleted.