Actions15
Customer → Delete
AI-generatedSummary
Deletes a WooCommerce customer using the customer ID, requiring a force parameter.
Inputs
- storeUrl (required) — The URL of the WooCommerce store (e.g., https://your-store.com).
- consumerKey (required) — The WooCommerce API consumer key for authentication.
- consumerSecret (required) — The WooCommerce API consumer secret for authentication.
- customerId (required) — The ID of the customer to delete.
Output shape
A list of items containing the deleted customer data (if any response is returned) or an empty list upon success.
The operation uses a DELETE request with a query parameter 'force' set to true. It returns the deleted customer object if available.
Examples
Example 1: Delete a specific customer by ID
Provide Store URL, Consumer Key, Consumer Secret, and the target Customer ID.