Delete customer
The Delete customer action deletes the customer.
On this page
Triggers
The Delete customer action has a hidden field added to it by the trigger. This field, Customer ID, is set by default. The action can be used in workflows that start with triggers tha contain customers, including:
- Customer account disabled
- Customer account enabled
- Customer created
- Draft order created
- Subscription contract created
The action can also be used with triggers that contain an order because customers are associated with orders:
- Order canceled
- Order created
- Order fulfilled
- Order paid
- Order risk analyzed
- Order transaction created
- Fulfillment created
- Fulfillment event created
- Refund created
- Tender transaction created
API details
To learn more, review the customerDelete mutation.
Templates
Delete inactive customers
Delete customers over 5 years old that have never placed an order. View template
Remove D2C customer if not added to company after 3 days
If a customer profile is created and not added to a company within 3 days, then the profile is deleted. View template.
You can use this template to automatically delete D2C customer profiles that are created when D2C customers try to access your gated B2B store. D2C Customers who attempt to access your B2B store can create a customer profile automatically through the authentication process, even though they can't place orders.