> Documentation index: [Saleor](/llms.txt) · [This section](/api-reference/attributes/llms.txt)
> Source: https://docs.saleor.io/api-reference/attributes/mutations/attribute-delete

# 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.

```graphql
attributeDelete(
  externalReference: String
  id: ID
): AttributeDelete
```

Details

```graphql
type AttributeDelete {
  attributeErrors: [AttributeError!]! @deprecated
  errors: [AttributeError!]!
  attribute: Attribute
}
```

<a id="arguments"></a>

### Arguments

<a id="external-reference"></a>

#### [`externalReference`](#external-reference) ● [`String`](/api-reference/miscellaneous/scalars/string.md)

External ID of an attribute to delete.

<a id="id"></a>

#### [`id`](#id) ● [`ID`](/api-reference/miscellaneous/scalars/id.md)

ID of an attribute to delete.

<a id="type"></a>

### Type

<a id="attributedelete"></a>

#### [`AttributeDelete`](/api-reference/attributes/objects/attribute-delete.md)

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.
