Skip to main content

attributeDelete

Deletes an attribute.

Requires MANAGE_PRODUCT_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • ATTRIBUTE_DELETED (async): An attribute was deleted.
attributeDelete(
externalReference: String
id: ID
): AttributeDelete

Arguments

attributeDelete.externalReference ● String scalar miscellaneous

External ID of an attribute to delete.

Added in Saleor 3.10

attributeDelete.id ● ID scalar miscellaneous

ID of an attribute to delete.

Type

AttributeDelete object attributes

Deletes an attribute.

Requires MANAGE_PRODUCT_TYPES_AND_ATTRIBUTESpermission.

Triggers the following webhook events:

  • ATTRIBUTE_DELETED (async): An attribute was deleted.