Security & Maintenance

How Do You Remove a WordPress Site from Cpanel

Step-by-step guide to deleting a WordPress install safely using your cPanel hosting account.

Maybe you no longer need a site, you’re cleaning up a cluttered hosting account, or you’ve already moved to a new platform. Simply deleting posts from the WordPress dashboard is not enough — the files and database still live on your server, and that can create confusion and even security risk.

On most shared hosting, your account can host multiple websites and email accounts. If you remove the wrong folder or database from cPanel, you could break other sites or lose important data. Understanding how WordPress sits inside your hosting stack, as explained in WordPress hosting explained, makes this process much safer.

In this tutorial, you’ll learn how to safely remove a WordPress site from cPanel: first by checking what you actually want to delete, then using any available app installer, and finally cleaning up files, databases, and domains manually without harming anything else on your hosting account.

Prerequisites

Before you delete anything in cPanel, pause and prepare. Removing a WordPress site is a destructive action — there’s no recycle bin for your database once it’s gone.

Warning: Deleting files and databases from cPanel is permanent. Always create and download a full backup of your site before you remove anything.

Make sure you have:

  • cPanel login details from your hosting provider.
  • The exact domain or subdomain you want to remove (for example, example.com or blog.example.com).
  • A complete backup of your WordPress files and database. You can follow this guide on how to back up a WordPress site if you haven’t done this yet.
  • 15–30 minutes of uninterrupted time so you can complete the process in one go.
  • Access to your domain registrar (optional) if you plan to repoint or remove the domain entirely.

Step 1: Map Your WordPress Installation in cPanel

The most important step is to be 100% sure which files and database belong to the WordPress site you want to remove. This prevents you from deleting the wrong site or shared resources.

  1. Log in to your hosting account and open the cPanel dashboard.
  2. In cPanel, go to Domains or Addon Domains. Look for the domain or subdomain you want to remove and note its Document Root (for example, /public_html/ or /public_html/blog/).
  3. In cPanel, click File Manager.
  4. In File Manager, open the document root folder you noted. You should see common WordPress files and folders like wp-admin, wp-content, wp-includes, and files such as wp-config.php and index.php. This confirms you’re looking at the correct site.
Note: On some accounts, multiple domains may share /public_html/. If you see folders like example2.com alongside WordPress files, be extra careful to delete only the site you actually want to remove.

Step 2: Remove the Site Using Softaculous or Your App Installer

Many hosts provide an automatic installer like Softaculous, Installatron, or Site Software. If your WordPress site was installed with one of these tools, the easiest and safest way to remove it is to use the same tool to uninstall it.

  1. From the cPanel home screen, open Softaculous Apps Installer (or a similar “App Installer” icon).
  2. Click on the WordPress icon, then look for a tab or link labeled Installations, All Installations, or similar.
  3. Find the entry that matches the domain and directory of the site you want to remove. Double-check the URL and installation path.
  4. Click the Remove or Uninstall icon (often a red X or trash can).
  5. When prompted, select options to delete the files, database, and database user for this installation, then confirm.
Screenshot of the Softaculous WordPress installation wizard, detailing software setup, site settings, and admin account fields for a quick one-click install.
The Softaculous installer simplifies the WordPress setup process, guiding users through software, site, and admin account configurations.
Note: If you don’t see Softaculous or any app installer in cPanel, or if your site isn’t listed there, skip this step and follow the manual removal steps below.
Pro Tip: Using the installer to remove WordPress usually cleans up the files, database, and user in one click, reducing the chance of leaving orphaned data behind.

Step 3: Manually Delete WordPress Files in cPanel

If there is no app installer, or if it didn’t fully remove the site, you can safely delete the WordPress files directly in File Manager.

  1. Return to File Manager in cPanel.
  2. Open the document root folder for the site (for example, /public_html/ or /public_html/blog/).
  3. Select the WordPress files and folders:
    • Folders: wp-admin, wp-content, wp-includes
    • Files: wp-config.php, index.php, wp-settings.php, and other WordPress core files in that directory
  4. Click the Delete button in the toolbar.
  5. When asked, you can leave the “Skip the trash” option unchecked if you want a temporary safety net, or check it to delete files permanently right away.
Warning: Do not delete the entire public_html folder if other sites or apps live inside it. Only remove the WordPress files and folders that belong to the site you are decommissioning.

Step 4: Remove the WordPress Database and User

Even after the files are gone, the WordPress database still contains all your posts, pages, users, and settings. If you’re certain you no longer need this data (and you have a backup), you can remove the database and its user from cPanel.

First, confirm which database your site uses:

  1. In File Manager, open the document root folder for your site.
  2. Right-click wp-config.php and choose View or Edit.
  3. Find these lines to identify the database name and user:
define( 'DB_NAME', 'example_db' );
define( 'DB_USER', 'example_user' );
define( 'DB_PASSWORD', 'example_password' );

Now remove the database and user:

  1. In cPanel, go to MySQL Databases (or MariaDB Databases on some hosts).
  2. Under Current Databases, locate the database name from DB_NAME. Make sure it isn’t shared with any other site or application.
  3. Click Delete (or a similar option) next to that database to remove it.
  4. Under Current Users, find the user from DB_USER. If no other database uses this user, remove it as well.
Note: If you’re unsure whether another site uses the same database, do not delete it. Instead, ask your host’s support team to help you confirm which databases belong to which sites.

Step 5: Clean Up Domains, Redirects, and SSL

With the files and database gone, the site itself is removed. However, your domain, subdomain, and SSL certificates may still be configured inside cPanel. Cleaning these up avoids confusion later.

  • Remove an addon domain: In cPanel, go to Domains or Addon Domains, find the domain, and use the option to remove or delete it. This stops it from pointing to a document root in your hosting account.
  • Remove a subdomain: Go to Subdomains, select the subdomain, and remove it. This only affects the routing on the server — your main domain remains untouched.
  • Check redirects: In cPanel, open Redirects and delete any redirects that pointed to the old WordPress URLs.
  • Update DNS or hosting for migrated sites: If you used this site as part of a move, such as when you move your WordPress site to a new host, make sure the domain’s DNS now points to the new server.
  • Review SSL certificates: In SSL/TLS or your security section, remove any certificates that are no longer needed, or reassign them to new sites as supported by your host.

Step 6: Confirm the Site Has Been Removed

Finally, check that nothing still loads from the old WordPress install and that visitors see the expected result.

  1. Open your browser in an incognito/private window.
  2. Visit the domain or subdomain you removed.
  3. Confirm one of the following:
    • A generic hosting page from your provider (no WordPress content).
    • A 404 or “site not found” message.
    • Your new site, if you repointed the domain elsewhere.
  4. Try going directly to /wp-admin on that domain (for example, https://example.com/wp-admin). You should see an error or a different site — not the old WordPress login screen.
Pro Tip: If you plan to reuse the domain later, you can upload a simple index.html “Coming soon” page in the document root so visitors aren’t confused by a blank or error page.

Clear Out Old WordPress Sites Without Breaking Your Hosting

Removing a WordPress site from cPanel is more than just hitting “Delete.” By mapping the installation, backing it up, and carefully removing files, databases, and domains, you keep your hosting account clean without risking other projects that share the same server.

Now that you’ve safely removed your old site, you can reuse the domain for a new project, consolidate sites on fewer servers, or simply reduce clutter and security risk in your hosting account. The key is to move slowly, double-check what you’re deleting, and always keep a good backup history in case you ever change your mind.

Further Reading

Frequently Asked Questions

Will deleting WordPress from cPanel delete my domain name?

No. Deleting WordPress from cPanel removes files, databases, and sometimes domain mappings inside your hosting account, but it does not cancel or delete the domain name itself. Your domain registration lives with your registrar (for example, Namecheap or GoDaddy), and it remains yours until you explicitly cancel or let it expire.

I deleted WordPress files but the old site still loads. What went wrong?

This usually means one of three things: your browser or CDN is serving a cached version of the site, your domain is still pointing to a different server where a copy of the site exists, or you removed the wrong folder and another installation is answering requests. Clear your browser cache, try an incognito window, and confirm the document root and DNS settings. If the site is still loading, contact your host to verify which directory the domain really points to.

Softaculous isn't showing my site. How do I remove WordPress manually?

If Softaculous or another installer doesn’t list your site, it may have been installed manually or its record may have been removed. In that case, follow the manual steps in this guide: identify the document root, delete the WordPress files from File Manager, and then remove the associated database and user from MySQL Databases. As long as you target the correct folder and database, the result is the same as an automatic uninstall.

What is the safest way to remove a WordPress site from cPanel?

The safest approach is to first make a full backup, then use the same app installer (such as Softaculous) that was used to install WordPress to remove it. If that isn’t available, manually remove the site in this order: map the installation, delete only the WordPress files in File Manager, then remove the specific database and user. Always double-check that no other sites share that folder or database before deleting.

Is it safe to leave old WordPress databases and users in cPanel?

While leaving old databases and users won’t instantly break anything, it’s not ideal. Orphaned databases take up space, and unused database users with passwords are a small but real security risk. After you’ve confirmed you no longer need the data (and you have backups), it’s better to remove those databases and users so your hosting environment stays clean and secure.

Related Articles

Leave a Reply

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

Back to top button