Code Cookbook

Delete Customer Profiles

Delete customer profiles.

Server Side
Client Side
Languages Supported

You can delete customer profiles. Deleted entities cannot be retrieved or undeleted.

Before you start

Delete a Customer object

To delete a customer, send a request to the DeleteCustomer endpoint.

  1. Set the customer_id for the customer you want to delete.
// The ID of the customer to update.
$customerId = '{REPLACE_ME}';

  1. Send your request to the DeleteCustomer endpoint. For now, we'll print the raw result to the screen.
try {
    $result = $customersApi->deleteCustomer($customerId);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->deleteCustomer: ',

Contact Developer Support, join our Slack channel, or ask for help on Stack Overflow