Delete a user
delete_userPermanently delete a user with required confirmation. Specify reassignment of their posts to another user or allow content deletion.
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.
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. |