Code Cookbook

Delete Customer Profiles

Delete customer profiles.

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);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling CustomersApi->deleteCustomer: ',
    $e->getMessage(),
    PHP_EOL;
}

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