Delete WooCommerce Customer
woocommerce_delete_customerPermanently delete a customer account and optionally reassign their content to another user. Action cannot be undone.
Instructions
Permanently delete a customer account. Customers don't support trash; this cannot be undone. Existing orders remain but become unlinked from the account.
Args:
customer_id (number, required)
reassign (number, optional): user ID to reassign content to
Returns: Confirmation of deletion.
Error Handling:
Returns "Error: Resource not found (404)" if customer_id doesn't exist.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reassign | No | Optional user ID to reassign this customer's posts/content to | |
| customer_id | Yes | The numeric WooCommerce customer ID to delete |