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.

result = gateway.customer.delete("the_customer_id")

# True
This code snippet now uses gateway instance methods instead of class-level methods. Learn more.

If the customer can't be found, it will throw a NotFoundError exception.

customer_id required, str

A string value representing an existing customer in your Vault.