Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Hosting · Guide

How to Remove WordPress From a Domain (Without Losing It)

How to Remove WordPress From a Domain (Without Losing It)

Short answer

To remove WordPress from a domain, back up the site, then uninstall it with your host's app installer, such as Softaculous, or delete the WordPress files in the domain's folder and drop its database in the hosting panel. Your domain stays registered; only the website on it is removed. On WordPress.com, delete the site in its settings instead.

Key takeaways

  • Removing WordPress deletes the website, not the domain name; the domain stays yours until it expires.
  • Always download a full backup of files and database first, since removal cannot be undone.
  • If WordPress was installed with Softaculous or a similar installer, uninstall it there so nothing is left behind.
  • A manual removal means deleting the files in the domain's folder and the database plus its user.
  • To use the domain for something else, put the new site's files in place or point the DNS elsewhere.

What happens when you remove WordPress from a domain?

Removing WordPress deletes the website's files and database, while the domain name itself stays registered to you and can be pointed at a new site.

It helps to keep three things apart:

ItemWhere it livesRemoved by uninstalling WordPress?
Domain nameYour registrarNo
Website filesYour hosting account folderYes
DatabaseYour hosting account's MySQL or MariaDBYes, if you delete it
Email accounts on the domainUsually your host or email providerNo, but check before cancelling hosting

After removal, visitors will see an empty folder listing, your host's default page or an error until you put something else there.

If you only want to move the site to a new address, you do not need to remove anything. Our guide on changing the domain of a WordPress site covers that instead.

What should you back up before removing WordPress?

Download a full backup of the files and the database, plus an export of your content, because removing WordPress cannot be undone.

Even if you never plan to use the site again, a backup costs nothing and saves you from losing old posts, images or customer data you may need later.

Keep these three copies:

  1. Files: the whole WordPress folder, especially wp-content with your uploads, themes and plugins
  2. Database: a .sql export from phpMyAdmin or your host's backup tool
  3. Content export: Tools > Export in the dashboard, which creates an XML file other WordPress sites can import

The Export screen documentation explains what the XML file includes. Store the backup somewhere outside the hosting account, such as your computer or cloud storage.

If you run a store, also export orders and customers as CSV files from the store's admin screens. Tax and accounting rules in many places require you to keep sales records for years.

How do you remove WordPress with Softaculous or another installer?

If WordPress was installed through your host's app installer, uninstall it there, which removes the files, database and database user in one step.

In cPanel with Softaculous, the steps are:

  1. Open Softaculous Apps Installer from the Software section
  2. Click All Installations or the Installations box
  3. Find the WordPress install for your domain and click the remove icon
  4. Tick remove directory, remove database and remove database user
  5. Click Remove Installation and confirm

If you want Softaculous to stop managing the site but keep the files, untick those options. Softaculous documents this in its guide to removing an installation without deleting files.

Other hosts use their own panels, such as hPanel or Plesk, but the idea is the same. Look for the WordPress or websites section and a delete or uninstall option for that domain.

How do you remove WordPress manually?

Delete the WordPress files from the domain's folder with File Manager or FTP, then delete the database and database user in your hosting panel.

First find which database the site uses. Open wp-config.php and note the value of DB_NAME and DB_USER. On hosts with several sites, this stops you from deleting the wrong database.

Then remove the files:

  • Open File Manager or connect by FTP
  • Go to the domain's folder, often public_html for the main domain or a subfolder for add-on domains
  • Delete wp-admin, wp-content, wp-includes and the wp- files in the root, plus .htaccess if only WordPress used it
  • Leave any folders that belong to other sites or tools, such as a separate subdomain

Finally, open MySQL Databases in your hosting panel and delete the database and its user. Leaving an unused database behind is not dangerous by itself, but it wastes space and can hold personal data you no longer need to keep. You can also drop it in phpMyAdmin, which the phpMyAdmin documentation covers.

How do you remove WordPress from only part of a domain?

If WordPress runs in a subfolder or subdomain, remove only that folder and its database, and leave the main site untouched.

Sites often have a blog at example.com/blog or a test copy at staging.example.com. Each of these is a separate WordPress install with its own files and usually its own database.

Check the wp-config.php inside that folder to find the right database name. Then delete only that folder and that database.

If the subfolder was a staging copy, also check your host's staging tool. Some hosts track staging sites separately, so delete it from there instead.

Can you remove WordPress but keep the pages online?

Yes, you can turn the site into plain HTML files before removing WordPress, which keeps the pages online without a database, updates or plugins to maintain.

This suits old sites that no longer change, such as an archived event site, a finished project or an old blog you want to keep readable. A static copy is fast, cheap to host and has almost nothing to hack.

The general approach is:

  1. Install a static export plugin or use a site crawler to save every page as HTML
  2. Check the export for broken links, missing images and forms
  3. Remove WordPress as described above
  4. Upload the exported HTML files to the domain's folder

Some features will stop working, because they need PHP and a database. Contact forms, comments, search and logins will not work in a static copy, so replace them with a simple email link or a third-party form service.

Test the static copy on a subdomain or test folder before you delete the live WordPress site. Once you are happy with it, swap them over.

How do you delete a WordPress.com site?

On WordPress.com, go to the site's Settings, scroll to the bottom and choose to delete the site permanently, after exporting your content.

WordPress.com hosts the site for you, so there are no files or databases to remove by hand. Its support guide on deleting a site walks through the steps and what you lose.

Two things to know before you click delete:

  • The free yoursite.wordpress.com address cannot be reused after deletion
  • A custom domain bought through WordPress.com stays in your account, but you may need to move or point it elsewhere

If you only want to hide the site for now, set it to private or coming soon instead of deleting it.

What should you do with the domain afterwards?

Point the domain at the new website, park it, or let it expire on purpose, but do not leave a half-removed site online.

If you are moving to a new platform or host, update the domain's DNS records to the new server. Our guide on pointing a domain to WordPress hosting shows which records to change, and the same steps apply to most other platforms.

If you are closing the site for good, redirect it to another site you own or put up a simple holding page. This keeps any backlinks and search traffic useful.

Also check search results after a few weeks. Search engines learn that a page is gone when it returns a 404 or 410 status, which usually takes days to a few weeks. Old pages can stay in Google for a while, and a removal request in Search Console can speed that up.

Should you also cancel the hosting plan?

Only cancel the hosting after you have your backup, moved any email accounts, and confirmed no other sites live on the same plan.

Many people forget that email for the domain often runs on the same hosting account. Cancelling the plan can stop those mailboxes working. Move email to a separate provider first, then update the domain's MX records before you close the hosting account.

If you leave within a refund window, you may get money back. Our guide on cancelling Hostinger and getting a refund is one example of how those windows work.

Frequently asked questions

Will removing WordPress delete my domain name?

No. The domain is registered separately with a registrar and stays yours until it expires. Removing WordPress only deletes the website files and database on your hosting account.

Can I reinstall WordPress after removing it?

Yes. You can install WordPress again on the same domain at any time. If you kept a backup of the files and database, you can restore the old site exactly as it was.

Is it safe to delete the WordPress files from public_html?

It is safe if nothing else lives in that folder and you have a backup. Check for other tools, verification files or subfolder sites first, and only delete the WordPress files and folders.

How do I remove WordPress but keep my posts?

Export your content from Tools > Export before removing WordPress, and keep a database backup. The XML export can be imported into another WordPress site, and many other platforms can read it too.

Why does my site still show after I removed WordPress?

A cache or CDN may still serve old copies, or DNS may point to a different server. Purge the CDN cache, check the folder is empty, and confirm the domain points to the server you cleaned.

Sources

  1. Tools Export Screen WordPress.org Documentation
  2. How to Remove/Detach Installation without deleting files Softaculous Docs
  3. Delete your site WordPress.com Support
  4. phpMyAdmin documentation phpMyAdmin

Is your product missing, or something out of date?

Tell us what to add or correct. We read every note and reply when we need a source. A message does not buy a ranking.

About the editors

Written and checked byWPLegible Editorial Team Independent WordPress reviews and guides

Researched from the primary sources listed above and checked against our editorial rules before publishing.