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

Schema: Saleor 3.23.43Download SDLUpgrade guides

On this page

customerDelete Mutation

Deletes a customer.

Requires one of the following permissions:MANAGE_USERS

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

CustomerDelete

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.

Last updated on April 13, 2026

Was this page helpful?