wp_delete_user is one of 162 MCP tools included in Easy MCP AI β the WordPress plugin that connects Claude, ChatGPT, and any AI assistant to your site.
Install Free Plugin βwp_delete_user
DestructiveDescription
When a team member leaves, their WordPress account and content both need handling β Easy MCP AI lets your AI manage the offboarding entirely through conversation, including reassigning posts to another author before the account is removed. Because deletion is irreversible, Easy MCP AI's per-token tool permissions let you gate this action to specific trusted AI sessions, and the built-in audit log records exactly when and by which client the account was removed. No admin panel access is needed at any step.
See it in action
wp_list_users Looking up user "john_temp"β¦
{
"total": 5,
"users": [
{ "user_id": 7, "username": "john_temp", "role": "contributor", "post_count": 3 },
{ "user_id": 8, "username": "main_editor", "role": "editor", "post_count": 24 }
]
} wp_delete_user {
"user_id": 7,
"username": "john_temp",
"deleted": true,
"posts_reassigned": 3,
"reassigned_to": "main_editor"
} Found user #7 β 'john_temp' (contributor). Account deleted and their 3 posts have been reassigned to 'main_editor' (#8).
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.β
Frequently Asked Questions
What does wp_delete_user do?
When a team member leaves, their WordPress account and content both need handling β Easy MCP AI lets your AI manage the offboarding entirely through conversation, including reassigning posts to another author before the account is removed. Because deletion is irreversible, Easy MCP AI's per-token tool permissions let you gate this action to specific trusted AI sessions, and the built-in audit log records exactly when and by which client the account was removed. No admin panel access is needed at any step.
How do I use wp_delete_user with my AI assistant?
Install the Easy MCP AI WordPress plugin, generate an API token in your dashboard, and connect your AI client (Claude, ChatGPT, Cursor, or any MCP-compatible assistant). Then simply describe what you want in natural language β for example: "A contributor named 'john_temp' is leaving the team. Delete their account and reassign their posts to 'main_editor'."
Do I need Easy MCP AI to use wp_delete_user?
Yes. wp_delete_user is one of 162 MCP tools bundled inside the Easy MCP AI WordPress plugin. Install the free plugin from WordPress.org, connect your AI client, and this tool becomes available immediately β no coding required.
Related Tools
UsersCreate a new WordPress user with username, email, password, and role
Fetch the full profile and role details of a specific WordPress user by ID
List all WordPress users filtered by role, status, or search keyword
Update a WordPress user's role, email, display name, or password by ID
Step 1
Get the Plugin
Install Easy MCP AI on your WordPress site to unlock wp_delete_user and all 74 tools instantly.
Step 2
Connect Your AI Client
Already have the plugin? Step-by-step setup guides for Claude, ChatGPT, Cursor, Windsurf, and 10+ more.