You can delete a customer using its ID. When a customer is deleted, all associated payment methods are also deleted, and all associated recurring billing subscriptions are canceled.

PHP
Click to copy
Copied
$result = Braintree_Customer::delete('a_customer_id');

$result->success
#=> true

If the 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.

Still have questions?

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