WordPress Basics

How to Delete WordPress Account Safely

Step by step guide for WordPress.com and self hosted

Deleting a WordPress account too quickly can cost you posts, media, and even full sites. With a simple plan you can protect your content, remove the right account, and keep your remaining sites running smoothly.

In this guide you will learn how to delete a WordPress.com account, remove a user from a self hosted WordPress site, and confirm that nothing important disappears. By the end you will know exactly which buttons to click and which data to save first.

What You Need to Start

  • Login details for your WordPress.com account or your self hosted WordPress admin area.
  • Access to the email address linked to the account you plan to delete.
  • Access to your web hosting control panel for self hosted sites if you need backups.
  • Enough time to export or download any content you might want later.
  • Administrator level access on self hosted WordPress if you want to remove a user.

Step 1: Identify Which WordPress Account You Want to Delete

Before you press any delete button, figure out which type of WordPress account you use. WordPress.com handles hosted accounts on their platform, while self hosted WordPress stores users in your own database on your server. Use the checklist below to pin that down.

  1. Check how you usually sign in. If you log in at WordPress.com, you most likely use a WordPress.com account. If you log in at yourdomain.com/wp-admin, you use a self hosted site account.
  2. Write down all sites connected to that account or user so you know what else relies on those login details.
  3. Decide what you really want to remove: a personal profile, one user on one site, or a full website.

If your real goal is to remove an entire self hosted site, follow the dedicated guide How to publish WordPress site instead of only deleting a user.

Step 2: Back Up Your Content Before Deleting Anything

A quick backup turns a risky account removal into a safe and reversible change. Take a moment to export your content and, if possible, copy the whole site.

Export Content from WordPress.com

  1. Sign in to WordPress.com and open the site that contains the content you want to save.
  2. From the left menu, go to Tools > Export.
  3. Click Export all to download a file with your posts and pages to your computer.

Export Content from a Self Hosted WordPress Site

  1. Log in to your self hosted dashboard. If you need help, see How to integrate WordPress into website.
  2. In the left sidebar, choose Tools > Export.
  3. Select All content and press Download Export File to save the XML file.
WordPress export screen showing options to export all content, posts, pages, or media, essential for backing up data before deleting an account.
Use the WordPress Export screen to download your site’s content as an XML file for backup or migration.

Create a Full Site Backup

  1. For a complete backup that includes themes, plugins, uploads, and database, follow How to backup a WordPress site or Beginner guide to WordPress speed optimization.
  2. Store export files and backups in safe locations such as cloud storage or an external drive so you can restore them later.
Always create at least one working backup or export before deleting an account or user. Without a backup, you cannot restore deleted content.

Step 3: Delete a WordPress.com Account Safely

Removing a WordPress.com account closes your profile, login, and access to associated services. To avoid surprises, walk through the account settings slowly and confirm what you lose with that account.

Open Account Settings

  1. Visit https://wordpress.com/log-in and sign in with the account you want to delete.
  2. Click your profile avatar in the top right corner of the dashboard.
  3. Choose Account Settings from the drop down menu.
WordPress dashboard displaying the Settings menu dropdown with General, Writing, and Reading options, crucial for site configuration.
The WordPress dashboard with the Settings menu expanded, showing various configuration options.

Start the Account Deletion Process

  1. Scroll to the bottom of the Account Settings page until you find the section about closing your account.
  2. Select the option labeled something like Close your account permanently to begin the deletion flow.
  3. Read each warning message and note which sites, purchases, or services will disappear with this account.

Confirm and Finalize Deletion

  1. Type any requested confirmation phrase or account name when the screen prompts you to do so.
  2. Click the final Close account or Delete account button to submit the request.
  3. Open your email inbox, find the confirmation message from WordPress.com, and click the link to complete the deletion.

After you confirm via email, try to sign in again with the same details. The login form should show an error that the account no longer exists. For extra information about available account options, review the WordPress.com account settings documentation.

Step 4: Delete a Self Hosted WordPress User from the Dashboard

On a self hosted WordPress site, removing an account means deleting a user record from your database. To keep blog posts and pages online, reassign that user’s content to another account instead of wiping it.

Open the Users Screen

  1. Sign in to your dashboard at https://yourdomain.com/wp-admin. If you struggle with this, follow How to integrate WordPress into website.
  2. From the left menu, navigate to Users > All Users.
WordPress admin Users screen showing the 'admin' account, crucial for managing or deleting a WordPress account safely.
Access the Users screen in your WordPress admin dashboard to manage or delete accounts.

Remove the Selected User Safely

  1. Locate the user account you want to remove. Hover over the username and click Delete.
  2. On the confirmation screen, choose whether to Delete all content or Attribute all content to another user.
  3. Pick a replacement user if you want to keep that content available on your site.
  4. Press the final Confirm Deletion button to remove the user account.
WordPress delete user account screen showing options to either delete JohnDoe's content or attribute it to the 'admin' user.
This WordPress screen allows you to choose what happens to a user’s content when their account is deleted.

Check Authors After Deletion

Return to Users > All Users and make sure the old username no longer appears. Then open a few posts originally written by that user and confirm that WordPress now attributes them to the new account you selected.

Step 5: Delete a WordPress User with Code or Command Line

Sometimes you cannot reach the WordPress dashboard, but you still control the server. In that situation you can remove a user programmatically using a short PHP script.

Editing code or running commands on your server can break your site if something goes wrong. Always create a fresh backup before you use this method.

Create a Temporary PHP Script

  1. Get SEO and UX, and where you will see it in daily work.”>SFTP or SSH credentials from your hosting control panel.
  2. Connect to the server and open your WordPress installation directory, typically named public_html or htdocs.
  3. Use a code editor or the file manager to create a temporary file, for example delete-user.php, in the WordPress root directory.

Add Code to Delete the User

  1. Paste the following code into the file, then adjust the user IDs to match your site. Save the file after editing.
// Load WordPress require_once __DIR__ . '/wp-load.php'; // ID of the user to delete $user_id_to_delete = 3; // ID of the user who should receive the deleted user's content $reassign_to_user_id = 1; if ( function_exists( 'wp_delete_user' ) ) { wp_delete_user( $user_id_to_delete, $reassign_to_user_id ); echo 'User deleted successfully'; } else { echo 'wp_delete_user function not available'; } 

Run and Remove the Script

  1. Open https://yourdomain.com/delete-user.php in your browser to run the script once. A success message should appear when the script finishes.
  2. Delete the temporary delete-user.php file from your server immediately so nobody else can run it.

After you regain dashboard access, visit Users > All Users and confirm that the targeted user ID no longer appears in the list.

Step 6: Confirm Your WordPress Account Is Fully Removed

Once you delete an account or user, run through a short checklist. These quick tests confirm that the right account disappeared and that everything else still works.

Test Logins

  1. Attempt to log in as the deleted user on WordPress.com or your self hosted site.
  2. Make sure the login form reports that the username or email address is invalid.
WordPress login page displaying a 'username not registered' error message, illustrating a failed attempt to log in to WordPress.
This WordPress login screen displays an error message indicating that the entered username, ‘John Doe,’ is not registered on the site.

Check Your Site Front End

  1. Browse your site as a normal visitor using a different browser or an incognito window.
  2. Confirm that posts, pages, menus, and widgets display correctly without errors.

Review Integrations and Services

  1. Open any integrations linked to that account such as Jetpack, API keys, or third party services.
  2. Update those services to use an active account so they continue to function correctly.

If all of these checks look good and you have stored backups safely, you can consider the account cleanup complete.

Conclusion: You Are Ready to Move On

Now you know how to delete a WordPress.com account and remove a user from a self hosted WordPress site without losing valuable content. Careful backups, smart reassignment of posts, and simple verification steps keep your WordPress setup clean and secure.

Should you decide to build a new site or start again with a different account in the future, your exported content and backups will help you launch quickly and confidently.

Further Reading

Frequently Asked Questions

Can I undo deleting my WordPress.com account?

No. After you complete the WordPress.com deletion steps and confirm via email, the platform closes your account permanently. You cannot sign in again or restore content that you did not export before deletion, so always create an export and store it safely first.

What is the difference between deleting an account and deleting a site?

Deleting an account removes your personal profile and login credentials. Removing a site deletes that specific website and its content. On WordPress.com you can delete a single site while keeping your account open, but you can also close the entire account. On a self hosted site, deleting a user removes that person from the database yet leaves the site itself online.

Will deleting a user delete their posts on my self hosted site?

When you delete a user from a self hosted WordPress dashboard, WordPress offers two choices. You can delete all content created by that user or attribute every post and page to another account. Choose the attribute option if you want to keep the content while removing the login.

Is it safe to delete the main administrator user on a self hosted site?

You can safely remove the original administrator as long as you set up a new administrator account first and reassign all content. Never leave your site without at least one active admin user. Log in with the new admin, verify full access, and then delete the old admin while attributing all content to the new one.

Do I need to contact my web host to delete a WordPress account?

In most cases you can delete a WordPress user directly from the WordPress dashboard without involving your host. Contact hosting support only if you also want to cancel your hosting plan or remove the entire site from the server, because those actions take place in the hosting control panel.

What should I do if I lost access to the email linked to my account?

Update the email address from your profile settings while you still have dashboard access. If you already lost access to both the email and the account, contact WordPress.com support or your hosting provider and complete their identity verification steps. Avoid risky database edits unless you fully understand them and have a fresh backup.

Can I delete a WordPress user directly in the database?

You can remove users from the wp_users table in your database, but this method increases the risk of mistakes if you lack SQL experience. Manual changes also require cleanup of related user meta and careful handling of content. Whenever possible, use the dashboard or the PHP method described in this guide instead of editing the database by hand.

Related Articles

Leave a Reply

Your email address will not be published. Required fields are marked *

Back to top button