Skip to content

customerAddressDelete

Mutationin Customer

Remove an address from the customer's address book

Arguments

ArgumentTypeDescription
addressIdID!

Returns

CustomerAddressDeleteResponse!

FieldTypeDescription
customerCustomerUpdated customer account information after address deletion
customerErrors[CustomerAddressDeleteError!]Error details if address deletion failed

Example

mutation {
customerAddressDelete(addressId: "addr-123") {
customer {
id
addresses {
items {
id
city
}
}
}
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: