customerDelete Mutation
Deletes a customer.
Triggers the following webhook events:
- CUSTOMER_DELETED (async): A customer account was deleted.
Applied directives
@webhookEventsInfo(asyncEvents: [CUSTOMER_DELETED], syncEvents: [])
customerDelete(externalReference: String, id: ID): CustomerDelete
Returns
Show return type
type CustomerDelete {
accountErrors: [AccountError!]! @deprecated(reason: "Use `errors` field instead.")
errors: [AccountError!]!
user: User
}Arguments
externalReference
externalReference · String
External ID of a customer to update.
id
id · ID
ID of a customer to delete.
Schema: Saleor 3.23.43. Download SDL.