Skip to content
Saleor
Esc
↑↓navigate↵open⌘Jpreview

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

attributeDelete Mutation

Deletes an attribute.

Requires one of the following permissions, depending on the attribute type: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES for PRODUCT_TYPE attributes, MANAGE_PAGE_TYPES_AND_ATTRIBUTES for PAGE_TYPE attributes, MANAGE_CUSTOMER_TYPES_AND_ATTRIBUTES for CUSTOMER_TYPE attributes.

Triggers the following webhook events:

  • ATTRIBUTE_DELETED (async): An attribute was deleted.

Applied directives

@webhookEventsInfo(asyncEvents: [ATTRIBUTE_DELETED], syncEvents: [])
attributeDelete(externalReference: String, id: ID): AttributeDelete

Returns

AttributeDelete

Show return type
type AttributeDelete {
  attributeErrors: [AttributeError!]! @deprecated(reason: "Use `errors` field instead.")
  errors: [AttributeError!]!
  attribute: Attribute
}

Arguments

externalReference

externalReference · String

External ID of an attribute to delete.

id

id · ID

ID of an attribute to delete.


Schema: Saleor 3.23.43. Download SDL.

Last updated on August 10, 2026

Was this page helpful?