Addresses are uniquely identified by a customer id and an address id, so you need both of these fields to delete an address.

note

When an address is deleted from a customer, it is also removed from any Vault payment methods that reference the address for billing or shipping.

PHP
$result = Braintree_Address::delete('theCustomerId', 'theAddressId');

$result->success
#=> true

If the address or customer cannot be found, you'll receive a Braintree_Exception_NotFound exception.

Arguments
customerId required, string

A string value representing an existing customer in your Vault.

addressId required, string

The two-letter value for an address associated with a specific customer ID. The maximum number of addresses per customer is 50.

Still have questions?

If you can’t find an answer, contact our Support team.