Delete a user
delete_userPermanently remove a WordPress user account. Requires explicit confirmation and reassignment of their content to another user to prevent data loss.
Instructions
Delete a user. WordPress has no trash for users, so this is permanent and requires confirm: true. You must say what happens to their content: reassign it to another user (strongly preferred) or let it be deleted with them.
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": {
"id": "<id>"
},
"name": "delete_user"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The user ID to delete. | |
| confirm | No | Required — user deletion cannot be undone. | |
| site_id | No | Which configured WordPress site to act on. Optional — with a single site configured it is used automatically; with several, the default site is used unless you name one. Run list_sites for valid ids. | |
| reassign_to | No | User ID to inherit this user's posts. Omit only if you truly want their content deleted too. |