WordPress Basics

How to Delete WordPress Site

A step-by-step guide to safely remove your self-hosted WordPress.org website, hosting files, and domain.

1

Maybe your WordPress site was a side project, a temporary campaign, or a client site that has run its course. Simply ignoring it is risky: abandoned sites can still be hacked, send spam, or confuse visitors and search engines.

In this guide, you will learn how to delete WordPress site data safely on a self-hosted WordPress.org installation. You will back up everything, remove WordPress files and the database, and clean up hosting, domain, and basic SEO footprints so nothing important is left behind.

Before you remove anything, it is essential to keep a copy of your work. If you need a more detailed walkthrough for backups, follow this guide on how to back up your WordPress site properly, then come back to continue.

Prerequisites

This tutorial assumes you are using self-hosted WordPress (WordPress.org) on a web host, not a free WordPress.com site. You should gather a few things before you start deleting files and databases.

  • WordPress admin login (username and password).
  • Hosting control panel access (cPanel, Plesk, or your host’s custom panel).
  • Domain registrar login (where your domain name is registered).
  • A recent full backup stored off the server (files + database).
  • Clarity on which domain and folder you want to delete (especially if the host has multiple sites).
Warning: If your hosting account contains multiple websites, you must be 100% sure which folders and database belong to the site you want to delete. Deleting the wrong folder can take down other sites on the same account.

Step 1: Decide What You’re Deleting (Site, Account, or Domain)

“Deleting a WordPress site” can mean different things, and mixing them up is a common mistake. Clarify what you actually want to remove so you do not delete more than intended.

Know the difference

  • Delete WordPress installation only: Remove the WordPress files and database, but keep the hosting account and domain for a new project.
  • Delete site + hosting account: Cancel your hosting plan so the server and all sites on it are removed.
  • Delete or let your domain expire: Stop paying for the domain, or move it to another registrar or project.
  • Delete a WordPress.com site/account: This is a different platform. If you are on WordPress.com, follow this separate guide on how to delete a WordPress.com account instead.
Note: This tutorial focuses on deleting a self-hosted WordPress.org website from your hosting account. Hosting cancellations and domain renewals are usually handled in separate billing or domain portals.

Step 2: Create a Full Backup of Your WordPress Site

Before you delete WordPress site data, always assume you might want the content again someday. A full backup gives you a safety net if you later change your mind or need to restore a specific page or blog post.

Use your existing backup plugin

  1. Log in to your WordPress admin dashboard.
  2. Open your backup plugin’s page (for example, under Tools or its own menu).
  3. Run a fresh backup that includes both files and the database.
  4. Download the backup archive to your computer and, ideally, store a copy in cloud storage.

Manually back up via hosting (cPanel example)

  1. Log in to your hosting control panel (for example, cPanel).
  2. Open File Manager and locate your site’s document root (often public_html or a subfolder like public_html/oldsite).
  3. Select all WordPress files and folders (wp-admin, wp-content, wp-includes, plus core files) and compress them into a zip archive.
  4. Download the zip file to your local computer.
  5. In cPanel, open phpMyAdmin, select your site’s database, click Export, and download the SQL file.

Advanced backup with WP-CLI (SSH)

If your host provides SSH and WP-CLI, you can back up quickly from the command line. Run these commands in your site’s web root folder:

# In SSH, inside your WordPress root directory:
wp db export backup-before-delete.sql
tar -czf wp-files-before-delete.tar.gz .
Pro Tip: Keep at least one backup copy offline (external drive or cloud storage) before you delete WordPress site data or close your hosting account.

Step 3: Put Your Site in Maintenance or Private Mode

While you prepare for deletion, you may want to prevent new visitors (or search engines) from hitting a half-deleted site. A simple maintenance or “goodbye” page keeps your shutdown looking intentional and professional.

Temporarily discourage search engines

  1. Log in to your WordPress admin dashboard.
  2. Go to Settings > Reading.
  3. Check the box for “Discourage search engines from indexing this site”.
  4. Click Save Changes.
WordPress Reading Settings page displaying options for posts per page, feed content (full text or excerpt), and search engine visibility.
Adjust your site’s post display, feed content, and search engine indexing preferences via the WordPress Reading Settings.
Note: This setting is only a request to search engines and does not actually delete your site or remove it from search results. You still need to complete the deletion steps below.

Show a simple maintenance or goodbye page (optional)

  • Install a maintenance or coming-soon plugin and activate maintenance mode, or
  • Replace your homepage with a simple “This site has closed” message if you prefer to do it manually.

This step is optional, but it creates a better experience for any visitors who land on your site during the shutdown process.

Step 4: Delete WordPress Files and Database from Your Hosting

This is the moment where you actually delete WordPress site files and database. Once this step is done, your WordPress installation will no longer load from that hosting account.

Warning: Double-check that your backups are complete and safely stored off the server. After deleting the files and database, recovery is extremely difficult or impossible.

Identify your WordPress folder and database

  1. In your hosting control panel, open File Manager.
  2. Locate the folder where WordPress is installed. Common examples:
    • public_html (WordPress is the main site on the account).
    • public_html/blog (WordPress in a subfolder).
    • A domain-specific folder like example.com/public_html.
  3. Open the wp-config.php file and find the database name so you delete the correct database later.
/** The name of the database for WordPress */
define( 'DB_NAME', 'example_db' );

/** MySQL database username */
define( 'DB_USER', 'example_user' );

Delete WordPress files via File Manager

  1. In File Manager, select all WordPress files and folders in the identified directory.
  2. Click Delete and confirm the deletion. Some hosts allow you to move items to a trash bin first; if so, empty the trash afterward.
  3. Visit your domain in a browser. You should see either a default hosting page, a 404 error, or a “directory listing” page, confirming WordPress is gone.

Delete the WordPress database via phpMyAdmin

  1. From your hosting control panel, open phpMyAdmin.
  2. In the left sidebar, select the database that matches the DB_NAME in wp-config.php.
  3. Click Export one last time if you want an extra backup.
  4. Return to the main phpMyAdmin screen, select the database again, and choose Drop (or use the “Drop database” option in your panel).
  5. Confirm that the database is removed from the list.
Note: If your hosting account contains multiple WordPress sites, each site will usually have its own database. Make sure you are dropping only the database for the site you intend to delete.

Step 5: Update or Remove Your Domain and DNS

After you delete WordPress site files and database, your domain may still point to that now-empty server. Decide what you want to happen when someone visits your domain.

If you want to reuse the domain for a new site

  1. Set up your new site (on the same host or a new one).
  2. Update the domain’s nameservers or A record at your domain registrar to point to the new host.
  3. Allow DNS changes to propagate (this can take a few hours).

If you want the domain to stop working completely

  • Remove or change the DNS records (A, AAAA, CNAME) so they no longer point to an active server.
  • Optionally, let the domain expire at the end of its registration term.
Warning: If you use the domain for email (e.g., you@yourdomain.com), do not delete or change MX records until you have migrated email elsewhere, or you will lose mail delivery.

Step 6: Handle Search Visibility and Basic SEO Cleanup

Once you delete WordPress site content, search engines will gradually notice that pages are gone. You can either let them drop naturally over time or take a more active role if the site had meaningful traffic.

For low-traffic or test sites

  • If you have already deleted files and removed DNS, simply wait. Search engines will encounter errors when crawling the old URLs and will eventually remove them from results.
  • You do not need to do anything else unless you see unwanted cached content lingering for a long time.

For sites with real traffic or sensitive content

  1. If possible, keep minimal hosting active for a short time and configure your server (or a simple .htaccess file) to return 410 Gone or redirect to a new site.
  2. In Google Search Console, use the Removals tool under the Index section to request temporary removal for especially sensitive URLs.
  3. Monitor the site’s coverage and performance reports to confirm that pages are dropping out of the index over the following weeks.
Pro Tip: If you’re moving content to a new site rather than deleting it permanently, consider following a detailed migration workflow first—see a guide on how to migrate a WordPress site—so you can preserve SEO value with proper redirects.

Safely Wrapping Up Your WordPress Site Deletion

Deleting a WordPress site is more than just clicking “Delete” in your hosting panel. By backing up first, cleaning out files and the database, and then updating domain and DNS settings, you ensure the shutdown is safe and controlled instead of chaotic.

With the steps in this guide, you can confidently remove an old WordPress project without leaving security holes, broken hosting accounts, or confusing search results behind. If you ever change your mind, your backups mean you still have the option to restore or reuse your content elsewhere.

Further Reading

Frequently Asked Questions

Can I undo the deletion after I delete my WordPress site?

You cannot easily undo a deletion once you remove WordPress files and drop the database from your hosting account. That is why a full backup is critical before you delete WordPress site data. If you have a backup (from a plugin, hosting panel, or WP-CLI), you can restore the files and database on the same host or a new one and bring the site back online.

Do I need to cancel my hosting plan after deleting WordPress?

Not necessarily. If you plan to use the same hosting plan for another site, you can keep it and install a new WordPress site or another application. If the deleted WordPress site was the only thing on that hosting account and you no longer need the server, log in to your host’s billing area and cancel the plan to avoid ongoing charges.

What if my host runs multiple sites and I’m afraid of deleting the wrong one?

First, confirm which domain points to which folder using your host’s domain or addon domain settings. Then open wp-config.php inside that folder and note the database name. Cross-check the domain, directory, and database carefully before deleting anything. When unsure, contact your host’s support and ask them to confirm the correct path and database name before you proceed.

Is it safer to just remove the domain instead of deleting files and the database?

Removing DNS or letting the domain expire makes the site harder to visit, but it does not erase the files or database stored on your server. For security and privacy, you should still delete WordPress site files and the database from your hosting account so that abandoned code and data cannot be exploited by attackers.

How long until my deleted WordPress site disappears from Google?

There is no exact timetable, but for most sites, Google gradually drops deleted URLs over several days to a few weeks as its crawler detects errors. If your site had significant traffic or sensitive content, you can speed things up by using the Removals tool in Google Search Console and, when possible, returning 410 Gone responses or redirects before fully closing hosting and DNS.

Related Articles

Leave a Reply

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

Check Also
Close
Back to top button