How to Delete a WordPress Site Safely (WordPress.com or cPanel)

WordPress removal from cPanel with public_html folder, backup archive and database

How you delete a WordPress site depends on where it lives. On WordPress.com, go to Settings, scroll to Delete site and confirm with your site address. On your own hosting, back up the site first, then remove the installation with WP Toolkit or Softaculous in cPanel, or delete its files and database by hand. Either way, your domain name stays registered until you cancel it separately.

Your siteWhat to doSection
WordPress.com (you manage it at wordpress.com, on a .wordpress.com address or a custom domain)Delete it from the WordPress.com dashboardDelete a WordPress.com site
Self-hosted WordPress on cPanel hostingBack up, then remove the files and databaseSteps 1 to 7 below
Managed WordPress hosting without cPanelUse your host’s “delete site” option, or ask supportFollow the backup advice in Step 1 first
You want to start over, not deleteReset or reinstall insteadBefore you remove a self-hosted site

The costly mistake is deleting the wrong folder or database, so I spend most of this guide on confirming what belongs to the site before you remove anything.

How to Delete a WordPress.com Site

If a self-hosted site shows up in your WordPress.com dashboard only because Jetpack is connected, deleting or disconnecting it there won’t remove it from your host. Use the self-hosted steps further down instead.

Before You Delete: A Quick Checklist

  • Export your posts and download your media library, even if you think you won’t need them.
  • Check whether email runs on the same domain. Deleting the site doesn’t delete the domain, but cancelling the domain would stop that email.
  • Note any links you want to keep working, so you can redirect them to a new site later.
  • Cancel paid plans, plugins or themes tied to the site, so you aren’t billed again.

Steps to Delete a WordPress.com Site

If your site is hosted on WordPress.com, you don’t need cPanel. These steps follow WordPress.com’s own guide:

  1. Export your content first if you might want it later. WordPress.com also offers an export during deletion.
  2. Go to your Hosting Dashboard at my.wordpress.com and click the site.
  3. Select Settings, scroll to Delete site and click Delete.
  4. If WordPress.com says the site still has active purchases, click Manage Purchases. Every plan, domain and email subscription tied to the site has to be cancelled and removed before WordPress.com lets you delete it. Then return to Settings and click Delete again.
  5. Type your full site address and click Delete Site.

WordPress.com keeps a deleted site for 30 days, so you can restore it from the Hosting Dashboard’s “Deleted sites” filter during that time. The old .wordpress.com address can’t be reused, deleting the site doesn’t close your WordPress.com account, and any domain you keep in your account keeps renewing until you cancel it.

Before You Remove a Self-Hosted Site

Illustration for removing a WordPress site from cPanel
On self-hosted WordPress, confirm the domain, files and database before you delete anything.

First, make sure you actually want to delete the WordPress installation. If you only want to start fresh, it may be better to reset WordPress or create a staging copy instead.

If you’re removing the old installation because you’re moving hosts, finish and test the migration first. My WordPress services include host-to-host moves and domain changes, with the migration scope agreed before work starts.

Step 1: Back Up the WordPress Site

Don’t skip the backup step. Even if you’re sure you don’t need the site, a backup gives you a way back if you delete the wrong folder or database.

  1. Log in to cPanel.
  2. Open Backup or Backup Wizard. The exact name depends on your host.
  3. Download a full account backup if your host allows it.
  4. Download the home directory backup and the MySQL database backup if a full backup isn’t available.
  5. Save the backup somewhere outside your hosting account.

If you’re new to backups, read what a WordPress backup includes before deleting anything.

Step 2: Identify the Site, Database and Table Prefix Before Deleting Anything

Complete these checks while the original files still exist, even if you plan to use an installer’s uninstall button. A domain name alone doesn’t identify every file or database used by an installation.

  • Open cPanel’s Domains screen and identify the target domain’s document root. An installation in a subfolder may share its parent folder with other sites. Don’t assume the whole public_html directory belongs to this installation.
  • In File Manager, locate this installation’s wp-config.php. It may be in the WordPress directory or, in some configurations, one level above it. View the file without changing it.
  • Record the DB_NAME, DB_USER, DB_HOST and $table_prefix values in private backup notes. You don’t need the database password to identify the database, and you shouldn’t put credentials in a screenshot.
  • Confirm whether any other application uses that database or database user. Check the installation records, relevant configuration files and table groups. A table prefix helps identify a WordPress installation, but plugins may also create tables that require separate review.
  • If this is WordPress Multisite, removing one subsite is different from uninstalling the network. Stop here and use a network-specific procedure. If ownership is unclear, ask your host before deleting anything.

The WordPress configuration reference explains these identifiers. Keep your database export and site files together so you can restore the matching installation if needed.

Step 3: Remove WordPress from WP Toolkit or Softaculous

Most cPanel hosting accounts include WP Toolkit, Softaculous, Installatron, or a similar WordPress installer. If your site was installed through one of these tools, remove it there first.

  1. In cPanel, search for WP Toolkit, WordPress Manager, Softaculous, or WordPress.
  2. Open the tool and find the site you want to delete.
  3. Check the domain name and installation path carefully.
  4. Choose Remove, Uninstall, or the trash icon.
  5. If the tool offers to delete files, databases or users, review each option against the identifiers from Step 2. Leave shared resources intact. Don’t choose an entire database or user for deletion if another application uses it.

On Namecheap and other hosts that use Softaculous: open Softaculous Apps Installer in cPanel, click the Installations icon at the top, find the domain and click the red X (Remove) icon. Softaculous then lists the folder, database and database user it will delete, so check them against what you noted in Step 2 before you confirm.

cPanel documents WP Toolkit for cPanel, and many hosts expose similar remove or uninstall options for managed WordPress installs. Your host may change the labels, but the idea is the same: remove the specific installation record and its matching files/database only when you’re sure it’s the right site.

Step 4: Delete WordPress Files Manually If Needed

Sometimes the installer removes the record but leaves files behind. Other times, the site was installed manually and doesn’t appear in WP Toolkit or Softaculous. In that case, use File Manager.

  1. Open File Manager in cPanel.
  2. Find the document root for the domain. For the main domain this may be public_html. For addon domains, it may be a separate folder.
  3. Look for WordPress files like wp-admin, wp-content, wp-includes, and wp-config.php.
  4. Confirm that this folder belongs to the site you want to remove.
  5. Using the installation path and ownership checks from Step 2, select only files and folders belonging to this installation. Preserve other sites, shared directories and unrelated files. If the installer has already removed the installation, don’t delete additional files just to complete this step.

Be extra careful on hosting accounts with multiple sites. Deleting a shared public_html directory can take other sites offline. A shared .htaccess file may contain rules for other applications; don’t remove it blindly.

Step 5: Remove the WordPress Database

WordPress stores posts, pages, comments, settings, users, orders, and many plugin settings in the database. After the files are removed, delete the matching database only if you’re sure no other site uses it.

  1. Use the database name, host and table prefix recorded in Step 2. Don’t guess from a similar-looking database name.
  2. Open Manage My Databases in current cPanel versions, or MySQL Databases in older interfaces. The database may be on another server if DB_HOST points elsewhere.
  3. If the database belongs exclusively to the removed installation, you can delete that database after confirming the saved export is readable. Skip this if the installer already removed it.
  4. If the database is shared, don’t delete the entire database. Have your host or an experienced administrator identify and remove only this installation’s tables, including any verified plugin tables. Keep unrelated tables and users intact.
  5. Remove the database user only if no other application or database still needs it.

If you already deleted the files and forgot the database name, recover the configuration from your backup or ask your host to identify the installation. Leave databases untouched until you can verify ownership.

Step 6: Clean Up the Domain Settings

Once files and database are removed, check the rest of the cPanel account for leftover settings tied to the old site.

  • Keep domain, DNS and email settings unless retiring them is part of your plan. Removing WordPress doesn’t require deleting the domain from the hosting account.
  • Remove old redirects that pointed to the WordPress site.
  • Remove cron jobs created by old plugins if they still exist.
  • Delete unused email forwarders only if they belonged to that site.
  • Remove SSL certificates only if the domain is no longer used.

If you plan to use the domain again, keep SSL in mind. You can read our tutorial on getting a free SSL certificate for WordPress when the new site is ready.

Step 7: Check the Site After Removal

Finally, open the domain in a private browser window and check what visitors see. You shouldn’t see the old WordPress site, old login page, or a broken half-deleted homepage.

  • Open the homepage.
  • Visit /wp-admin/ and confirm the old login page is gone.
  • Check whether the domain now shows an “Index of /” file list. If it does, add a simple placeholder page or ask your host to turn off directory browsing.
  • To get old pages out of search results, follow the steps in Remove the Old Site From Google below.

Remove the Old Site From Google

Deleted pages drop out of Google on their own once Google recrawls them and gets a “not found” (404) or “gone” (410) response. That can take weeks. To hide them faster, use the Removals tool in Google Search Console. You’ll need the site verified in Search Console first. DNS verification keeps working after the site is gone, as long as you keep the domain and its verification record. The tool hides URLs for about six months while Google catches up, so make sure the pages really return 404 or 410 by then.

If you’re replacing the site with a new one on the same domain, redirect important old URLs to their closest new page instead of letting them return 404. That keeps the links and traffic they earned.

Summary

On WordPress.com, cancel any purchases you don’t need, then delete the site from Settings; you have 30 days to restore it. On self-hosted WordPress, back up the files and database, then identify the document root, database and table prefix while wp-config.php is still available. Remove the verified installation through your installer or File Manager. Delete a whole database only when it’s dedicated to that installation; preserve shared resources.

Take your time with the domain and database checks. That’s where a small mistake can delete the wrong site.

FAQs

Will removing WordPress from cPanel delete my domain?

No. Deleting WordPress removes the website files and database. Your domain registration is separate. Removing a domain from cPanel changes its hosting configuration; it doesn’t itself cancel the registration with your registrar.

Should I delete the database too?

Only delete the whole database if it’s dedicated to the removed installation. If it’s shared, keep the database and have an experienced administrator remove only the verified installation tables. An installer may already have done the required cleanup.

What if my WordPress site doesn’t appear in WP Toolkit or Softaculous?

Use File Manager and Manage My Databases (MySQL Databases in older cPanel versions). First identify the correct document root and database name, then remove them after creating a backup.

Can I recover the site after deleting it?

On a self-hosted site, you can only get it back from your own backup or from a server backup your host still keeps. That’s why Step 1 has you download a copy before you delete anything. A WordPress.com site can be restored for 30 days, as the next answer explains.

Can I restore a deleted WordPress.com site?

Yes, within 30 days. In the Hosting Dashboard, filter by “Deleted sites”, open the site’s ⋮ menu and choose Restore site. After 30 days the data is permanently removed.

Why does my old site still show after I deleted WordPress?

It may be cache, DNS, a CDN, or leftover files in the document root. Clear cache and confirm that the files were removed from the correct folder.

For current cPanel database controls, see Manage My Databases.

Related Posts

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to our Monthly Newsletter

Get monthly updates of WordPress tips, tricks, and tutorials in your email.

Thanks. You have successfully subscribed.