Delete Customer
Deletes a WooCommerce customer's WordPress user account. Unlike products/orders there is no trash — this is immediate and permanent. Optionally reassign their content to another user ID.
Also known as: remove a customer.
| Property | Value |
|---|---|
| Ability slug | mosmcp/delete-customer |
| Wire tool name | mosmcp__delete-customer |
| Category | WooCommerce (mosmcp-woocommerce) |
| Plan | Free |
Required access
| Requirement | Value |
|---|---|
| Capability | delete_users |
| Minimum default role | Administrator |
| Requires | WooCommerce |
| Annotations | readOnly: false · destructive: true · idempotent: true · openWorld: false |
Input schema
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | integer | Yes | — | The customer ID to delete (required). |
| reassign | integer | — | User ID to reassign this customer's content to. Omit to leave it unassigned. |
Output schema
| Field | Type | Required |
|---|---|---|
| success | boolean | |
| message | string | |
| data | object | |
| data.id | integer | Yes |
| data.status | string | Yes |
| meta | object | |
| meta.ability | string | |
| meta.timestamp | string | |
| meta.execution_time | string \| null |
Example
Sample prompt
Delete customer account 57.
Example request (json)
{
"jsonrpc": "2.0",
"id": 362,
"method": "tools/call",
"params": {
"name": "mosmcp__delete-customer",
"arguments": {
"input": {
"id": 57
}
}
}
}Example response (json)
{
"jsonrpc": "2.0",
"id": 362,
"result": {
"isError": false,
"structuredContent": {
"success": true,
"message": "Customer account deleted.",
"data": {
"id": 57,
"status": "deleted"
},
"meta": {
"ability": "mosmcp/delete-customer",
"timestamp": "2026-09-29T10:15:00+00:00",
"execution_time": "18.4ms"
}
}
}
}
Edge cases / errors
- There is no trash - the WordPress user is deleted immediately and permanently.
- Without reassign, posts they authored are deleted with them; pass reassign with another user ID to keep it.
- Unknown user → wcab_customer_not_found; no rights to delete that user → wcab_cannot_delete; WordPress refuses → wcab_customer_delete_failed.
| << Previous | Next >> |
|---|---|
| Delete Coupon | Delete Order |
For more information about the Secure MCP Server for WordPress plugin, explore the following resources:
Product Overview | Pricing | Try for Free | Documentation
If you have any questions regarding plugin configuration, pricing plans or licensing, please contact us or mail us at aisupport@xecurify.com.