Skip to content

customerDelete

Mutationin Customer

Delete the current customer account (requires password confirmation)

Arguments

ArgumentTypeDescription
passwordString!

Returns

CustomerDeleteResponse!

FieldTypeDescription
successBoolean!Indicates if the deletion was successful
customerErrors[CustomerDeleteError!]Error details if deletion failed

Example

mutation {
customerDelete(password: "currentPassword123") {
success
customerErrors {
... on ValidationError {
message
}
}
}
}

The query is the example the schema documents. The response shows its shape with placeholder values.

Served by

@evolve-framework/commercetoolsResolved
@evolve-framework/medusaResolved
@evolve-framework/sfccStub: answers Not implemented

Used by

The storefront packages that send it, in these GraphQL documents: