← Back to Tools Reference
Download Plugin
wp_delete_user
Description
Use this tool to remove a user account from your WordPress site. You can optionally specify a user to reassign the deleted user's posts to — preventing content from being orphaned. Your AI will list users first to confirm the correct ID before performing this irreversible action.
See it in action
Claude Desktop — MCP Connection
👤
A contributor named 'john_temp' is leaving the team. Delete their account and reassign their posts to 'main_editor'.
🤖
Calling Tool: wp_delete_user
Done! I've used wp_delete_user to complete that for you.
{"status": "success"} Example Use Cases & Sample Prompts
- Offboarding a team member
- Prompt: “A contributor named ‘john_temp’ is leaving the team. Delete their account and reassign their posts to ‘main_editor’.”
- Removing a test account
- Prompt: “Delete the test user account we created earlier for staging verification.”
- Spam account cleanup
- Prompt: “List subscriber accounts registered with suspicious email domains and delete them.”
- Guest author cleanup
- Prompt: “The guest post campaign is over. List and delete all accounts with the ‘contributor’ role that were created during the campaign.”
- Security cleanup
- Prompt: “A former admin needs to be removed. Find the account and delete it after confirming with me.”
Access this tool today
Install the Easy MCP AI plugin to securely expose wp_delete_user to Claude, ChatGPT, and more.