delete - Customer Module Reference
This documentation provides a reference to the delete
method. This belongs to the Customer Module.
delete(customerId, sharedContext?): Promise<void>
This method deletes a customer by its ID.
Example
Parameters
customerId
stringRequiredThe customer's ID.
Returns
Promise
Promise<void>RequiredResolves when the customer is deleted successfully.
delete(customerIds, sharedContext?): Promise<void>
This method deletes customers by their IDs.
Example
Parameters
customerIds
string[]RequiredThe IDs of customers.
Returns
Promise
Promise<void>RequiredResolves when the customers are deleted successfully.
delete(selector, sharedContext?): Promise<void>
This method deletes a customer matching the specified filters.
Example
Parameters
The filters that specify which customers should be deleted.
Returns
Promise
Promise<void>RequiredResolves when the customers are deleted successfully.
Was this section helpful?