API Reference
Delete Customer API
The Delete Customer endpoint allows you to permanently remove a customer profile from the system.
Delete Customer
DELETE
/wp-json/wc/v3/customers/{id}Query Parameters
| Parameter | Type | Description |
|---|---|---|
| force | boolean | Required to be true to permanently delete. Otherwise, the customer is moved to trash. |
⚠️
Irreversible ActionDeleting a customer is permanent and cannot be undone. Ensure you have the correct ID before proceeding.
Response Schema (JSON)
{
"id": 25,
"date_created": "2023-01-15T10:00:00",
"email": "james.doe@example.com",
"first_name": "James",
"last_name": "Doe",
"role": "customer",
"username": "james.doe",
"message": "Permanently deleted customer"
}