How to Delete a WordPress User

To delete a WordPress user, go to Users → All Users in your dashboard, check the box next to the username, select “Delete” from the Bulk Actions dropdown, choose whether to attribute their content to another user or delete it entirely, and click Apply.
The user account is permanently removed, and their posts/pages are either reassigned or deleted based on your selection.

Removing users from WordPress is essential for maintaining security, cleaning up inactive accounts, and managing team access. Whether you’re offboarding a former employee, removing spam registrations, or consolidating accounts, WordPress provides built-in tools to delete users safely without losing valuable content.

This 2026 guide shows you exactly how to delete a WordPress user using multiple methods—single deletion, bulk removal, plugins, WP-CLI, and database—plus critical steps to preserve content and protect your site.

Last updated: September 2026


Why You Need to Delete WordPress Users

User accounts that are no longer needed pose security risks and clutter your dashboard. Deleting users helps you:

  • Remove access for former employees, freelancers, or contractors

  • Clean up spam or fake registrations

  • Consolidate duplicate accounts

  • Reduce your site’s attack surface

  • Maintain an accurate user directory

However, deleting users requires care—especially when they’ve created posts, pages, or comments. Understanding the deletion process prevents accidental content loss.


Before You Delete: Critical Considerations

Deleting a user is permanent. Before proceeding, consider these factors:

Check Their Content

Users may have created:

  • Blog posts or pages

  • Comments on posts

  • Media uploads

  • Custom post types (products, testimonials, portfolios)

Decide whether to keep, reassign, or delete this content.

Reassign Content When Necessary

If the user has published content you want to keep:

  • Attribute posts to another active user (e.g., their manager or a generic “Editor” account)

  • This preserves SEO value and prevents broken author pages

Export Data If Needed

For compliance or archival purposes:

  • Export their posts via Tools → Export

  • Download their media uploads via FTP

  • Save comment history if relevant

Notify the User (If Applicable)

For team members or clients:

  • Inform them before deletion

  • Provide alternative access if needed

  • Document the reason for removal

Post to explore : WordPress user roles explained


Method 1: Delete a Single User via Dashboard (Easiest) – 6 Steps

This is the standard method for removing one user account.

Step 1: Log Into WordPress Dashboard

Visit yoursite.com/wp-admin and log in with an Administrator account. Only Administrators (or Super Admins in multisite) can delete users.

Step 2: Navigate to Users → All Users

In the left sidebar:

  1. Hover over Users.

  2. Click All Users.

Step 3: Find the User to Delete

Scroll through the user list or use the search box to locate the account you want to remove.

Step 4: Hover and Click Delete

Hover over the username. A menu appears below with options:

  • Edit

  • Delete

Click Delete.

Step 5: Choose Content Handling

WordPress displays a confirmation screen with two options:

Option 1: Delete All Content

  • Removes all posts, pages, and media created by the user

  • Permanently deletes their comments

  • Use only for spam accounts or when content is no longer needed

Option 2: Attribute All Content To

  • Reassigns posts, pages, and media to another user

  • Preserves SEO value and author archives

  • Recommended for team members or contributors

Select the appropriate option from the dropdown.

Step 6: Confirm Deletion

Click the Confirm Deletion button.

The user is now permanently removed from your site.


Method 2: Delete Multiple Users at Once (Bulk Action) – 6 Steps

For cleaning up spam registrations or removing multiple team members, WordPress allows bulk deletion.

Step 1: Go to Users → All Users

Navigate to the Users list in your dashboard.

Step 2: Select Users with Checkboxes

Check the boxes next to the usernames you want to delete. You can select multiple users at once.

Pro tip: Use the search or filter options to find specific users (e.g., “Subscriber” role or registration date).

Step 3: Choose Bulk Action

At the top of the user table:

  1. Find the Bulk Actions dropdown.

  2. Select Delete.

Step 4: Click Apply

Click the Apply button next to the dropdown.

Step 5: Handle Content for Each User

If selected users have content, WordPress prompts you to reassign or delete it. Choose the appropriate option for each user.

Step 6: Confirm Bulk Deletion

Click Confirm Deletion to remove all selected accounts.

All users are now deleted simultaneously.


Method 3: Delete a User from Their Profile Page – 5 Steps

You can also delete users directly from their individual profile.

Step 1: Navigate to Users → All Users

Go to the Users list in your dashboard.

Step 2: Click the Username

Click directly on the username (not the Edit link) to open their profile page.

Step 3: Scroll to the Bottom

At the bottom of the profile page, you’ll see a Delete User link.

Step 4: Click Delete User

Click the link. WordPress shows the same content-handling options as the bulk deletion method.

Step 5: Choose Content Handling and Confirm

Select whether to delete or reassign content, then click Confirm Deletion.


Method 4: Delete Users with a Plugin

Plugins like Bulk DeleteWP Bulk Delete, or User Role Editor extend deletion capabilities with advanced filters, scheduling, and automation.

Example: Using Bulk Delete Plugin

  1. Install and activate the Bulk Delete plugin.

  2. Go to Bulk Delete → Bulk Delete Users in your dashboard.

  3. Choose deletion criteria:

    • By role (e.g., delete all Subscribers)

    • By registration date (e.g., users older than 1 year)

    • By post count (e.g., users with zero posts)

    • By last login (e.g., inactive for 6+ months)

  4. Preview the users to be deleted.

  5. Click Bulk Delete to remove them.

Example: Using WP Bulk Delete

  1. Install and activate WP Bulk Delete.

  2. Go to WP Bulk Delete → Delete Users.

  3. Select filters (role, date, activity).

  4. Click Delete Users.

Benefits of plugins:

  • Delete users based on custom criteria

  • Schedule automatic cleanup of inactive accounts

  • Export user lists before deletion for records


Method 5: Delete Users via WP-CLI (Advanced)

For developers or agencies managing multiple sites, WP-CLI allows fast, scriptable user deletion without loading the dashboard.

Prerequisites

  • SSH access to your server

  • WP-CLI installed on your host

Command to Delete a User

bash

wp user delete johndoe --reassign=5

Replace:

  • johndoe with the username

  • 5 with the ID of the user to reassign content to (use --reassign=0 to delete all content)

Examples

Delete Without Reassigning Content:

bash

wp user delete johndoe

Using User ID:

bash

wp user delete 42 --reassign=5

Delete All Subscribers:

bash

wp user list --role=subscriber --field=ID | xargs -I % wp user delete % --reassign=1

Verify the Deletion

List users to confirm removal:

bash

wp user list --fields=ID,user_login,roles

Method 6: Delete Users via phpMyAdmin (Database Method) – 5 Steps

For advanced users who need to delete users directly in the database (e.g., when locked out of wp-admin or cleaning up after a hack).

Warning

This method is risky—incorrect database edits can break your site. Always back up first.

Step 1: Access phpMyAdmin

Log into cPanel → Databases → phpMyAdmin. Select your WordPress database.

Step 2: Find the User ID

Open the wp_users table and locate the user. Note their ID (e.g., 42).

Step 3: Delete from wp_usermeta

Open the wp_usermeta table. Run this SQL query:

sql

DELETE FROM wp_usermeta WHERE user_id = 42;

Replace 42 with the actual user ID.

Step 4: Delete from wp_users

Open the wp_users table. Run this SQL query:

sql

DELETE FROM wp_users WHERE ID = 42;

Step 5: Reassign or Delete Content (Optional)

To reassign posts to another user:

sql

UPDATE wp_posts SET post_author = 5 WHERE post_author = 42;

Replace 5 with the new author’s ID and 42 with the deleted user’s ID.

The user is now permanently removed from the database.


Special Case: WooCommerce Customers and Shop Managers

If you run a WooCommerce store, deleting users requires extra care.

Deleting Customers

Considerations:

  • Customers have order history tied to their account

  • Deleting removes access to past orders and downloads

  • Consider keeping the account but resetting the password instead

Best Practice:

  • Export order data via WooCommerce → Orders → Export

  • Notify the customer before deletion

  • Reassign orders to a generic account if needed

Deleting Shop Managers

Considerations:

  • Shop Managers may have created products, coupons, or reports

  • Their actions are logged in WooCommerce activity logs

Best Practice:

  • Review their contributions before deletion

  • Reassign products or orders to another manager

  • Document the removal for audit purposes

See this post: WordPress role security


When to Delete WordPress Users

Former Employees or Contractors

Immediately remove access when someone leaves your team to prevent unauthorized changes or data theft.

Spam or Fake Registrations

Delete bots, fake accounts, or suspicious registrations to keep your user database clean and secure.

Inactive Accounts

Remove users who haven’t logged in for 6–12 months to reduce your site’s attack surface.

Duplicate Accounts

Consolidate multiple accounts belonging to the same person into a single account.

Security Incidents

After a hack or breach, delete compromised or suspicious accounts as part of your cleanup process.


Best Practices for Deleting WordPress Users

Always Reassign Content for Team Members

Never delete content created by legitimate contributors. Reassign posts to preserve SEO value and author attribution.

Keep an Audit Trail

Document:

  • Who was deleted

  • When the deletion occurred

  • Who approved it

  • What happened to their content

Export Data Before Deletion

For compliance or archival purposes:

  • Export posts via Tools → Export

  • Download media via FTP

  • Save user metadata in a spreadsheet

Use Bulk Deletion for Spam Cleanup

When removing hundreds of spam registrations, use plugins like Bulk Delete to filter by role, date, or activity.

Review Users Quarterly

Schedule quarterly audits to:

  • Identify inactive accounts

  • Remove former team members

  • Clean up spam registrations

  • Verify all users still need access

Post to check: WordPress Role Security Checklist


Common Mistakes to Avoid

Deleting Without Reassigning Content

This removes all posts, pages, and media created by the user. Always reassign content for legitimate contributors.

Deleting Your Own Account

WordPress prevents you from deleting your own account, but if you use WP-CLI or database methods, you can lock yourself out. Always ensure at least one Administrator remains.

Not Checking for Linked Data

Users may be linked to:

  • WooCommerce orders

  • Membership subscriptions

  • LMS course progress

  • Form submissions

Review these before deletion.

Deleting Active Contributors

Double-check that the user hasn’t published content recently or is currently working on drafts.

Ignoring Multisite Implications

In WordPress Multisite, deleting a user removes them from all sites in the network. Verify which sites they’re associated with first.


Troubleshooting: Why Can’t I Delete a WordPress User?

Delete Option Missing

Cause: You’re not logged in as an Administrator, or the user is a Super Admin in multisite.

Fix: Log in with an Administrator account or contact the network Super Admin.

“You do not have permission to delete this user”

Cause: Your role lacks the delete_users capability.

Fix: Ask an Administrator to delete the user or upgrade your permissions.

User Cannot Be Deleted

Cause: The user is the only Administrator on the site.

Fix: Create a new Administrator account first, then delete the old one.

Deletion Fails Silently

Cause: Plugin conflict, database corruption, or server error.

Fix: Check error logs, deactivate plugins temporarily, or try deleting via WP-CLI or phpMyAdmin.

Content Not Reassigned After Deletion

Cause: Database issue or incomplete deletion process.

Fix: Manually reassign posts via phpMyAdmin:

sql

UPDATE wp_posts SET post_author = 5 WHERE post_author = 42;

How to Delete Your Own WordPress Account – 4 Options

WordPress doesn’t allow you to delete your own account from the dashboard for security reasons. However, you have options:

Option 1: Ask Another Administrator

Request another Administrator to delete your account and reassign your content.

Option 2: Use WP-CLI

If you have SSH access:

bash

wp user delete yourusername --reassign=another_admin_id

Option 3: Use a Plugin

Install a plugin like Delete Me or Close Account that allows users to request account deletion.

Option 4: Database Deletion (Advanced)

Follow the phpMyAdmin method above, but ensure another Administrator account exists first.


Frequently Asked Questions

Can I delete a user without losing their posts?

Yes. When deleting, choose “Attribute all content to” and select another user. Their posts will be reassigned and remain published.

What happens to a user’s comments when I delete them?

Comments remain but are attributed to “Anonymous” or the user’s name at the time of deletion. They’re not removed unless you explicitly delete comment data.

Can I delete the only Administrator on a site?

No. WordPress requires at least one Administrator. Create a new Admin account first, then delete the old one.

How do I delete all users with a specific role?

Use a plugin like Bulk Delete or WP Bulk Delete to filter by role (e.g., delete all Subscribers). Alternatively, use WP-CLI:

bash

wp user list --role=subscriber --field=ID | xargs -I % wp user delete % --reassign=1

Can I recover a deleted user?

No. Deletion is permanent. Always back up your database before bulk deletions. If you need to restore a user, you’ll need a database backup.

Does deleting a user remove their media uploads?

No. Media files remain in the Media Library but become unattributed. You can reassign them to another user or delete them manually.

How do I delete spam user registrations?

Go to Users → All Users, filter by “Subscriber” role, select all spam accounts, choose “Delete” from Bulk Actions, and click Apply. For large-scale cleanup, use a plugin like Bulk Delete.

Can I schedule automatic user deletion?

Yes. Plugins like Bulk Delete or WP Bulk Delete allow you to schedule automatic removal of inactive users (e.g., delete Subscribers who haven’t logged in for 1 year).


Discover more from WORDPRESS ROLE

Subscribe to get the latest posts sent to your email.

Discover more from WORDPRESS ROLE

Subscribe now to keep reading and get access to the full archive.

Continue reading