Skip to main content

attributeValueDelete Mutation

Deletes a value of an attribute.

Requires one of the following permissions, depending on the type of the value's attribute: 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_VALUE_DELETED (async): An attribute value was deleted.
  • ATTRIBUTE_UPDATED (async): An attribute was updated.
attributeValueDelete(
externalReference: String
id: ID
): AttributeValueDelete
Details
type AttributeValueDelete {
attribute: Attribute
attributeErrors: [AttributeError!]! @deprecated
errors: [AttributeError!]!
attributeValue: AttributeValue
}

Arguments

externalReference ● String

External ID of a value to delete.

id ● ID

ID of a value to delete.

Type

AttributeValueDelete

Deletes a value of an attribute.

Requires one of the following permissions, depending on the type of the value's attribute: 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_VALUE_DELETED (async): An attribute value was deleted.
  • ATTRIBUTE_UPDATED (async): An attribute was updated.