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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"customer_id": "<customer_id>"
},
"name": "woocommerce_delete_customer"
}
}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 |