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.
Ruby
result = gateway.customer.delete("the_customer_id")
if result.success?
puts "customer successfully deleted"
end
If the customer can't be found, it will raise a Braintree::NotFoundError
.