Edit in GitHubLog an issue

deleteCustomerAddressV2 mutation

Use the deleteCustomerAddressV2 mutation to delete the specified customer address. It returns a Boolean value that indicates whether the operation was successful.

We recommend you use a customer token in the header of your call to delete a customer. However, you also can use session authentication.

Syntax

Copied to your clipboard
mutation {
deleteCustomerAddressV2(
uid: ID!
) {
Boolean
}
}

Example usage

The following call deletes a customer's address.

Request:

Copied to your clipboard
mutation {
deleteCustomerAddressV2(uid: "ODU=")
}

Response:

Copied to your clipboard
{
"data": {
"deleteCustomerAddressV2": true
}
}

Input attributes

The deleteCustomerAddressV2 mutation requires the following input:

AttributeData TypeDescription
uid
ID!
The unique ID for a CustomerAddress object.

Output attributes

The deleteCustomerAddressV2 mutation returns a Boolean value that indicates whether the operation was successful.

Errors

ErrorDescription
Address "uid" value must be specified
The uid argument is null or empty.
Could not find an address with ID "XXX"
The customer address specified in the uid argument does not exist.
Customer Address XXX is set as default billing address and cannot be deleted
You cannot delete a default billing address.
Customer Address XXX is set as default shipping address and cannot be deleted
You cannot delete a default shipping address.
Field "deleteCustomerAddressV2" argument "uid" requires type ID!, found "XXX".
The specified uid argument value has the wrong type.
Syntax Error: Expected Name, found )
The uid argument was omitted or does not have a value.
The current customer isn't authorized.
The current customer is not currently logged in, or the customer's token does not exist in the oauth_token table.
  • Privacy
  • Terms of Use
  • Do not sell or share my personal information
  • AdChoices
Copyright © 2026 Adobe. All rights reserved.