To delete a customer, you must perform the following:
NOTE: To delete multiple customers, query them and execute the code below for each one of them.
NOTE: If you delete a customer, all of the orders that are associated with him, will also get deleted.
Here is a code example:
OrdersManager ordersManager = OrdersManager.GetManager();
Customer customer = ordersManager.GetCustomer(customerId);
IQueryable<CustomerAddress> customerAddresses = ordersManager.GetCustomerAddresses().Where(a => a.Parent.Id == customerId);
IQueryable<CustomerMoney> customerMoneys = ordersManager.GetCustomerMoneys().Where(m => m.Parent.Id == customerId);
Back To Top