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

Setup & site building · Guide

How to Remove WordPress From Your Computer (Local Sites and Apps)

How to Remove WordPress From Your Computer (Local Sites and Apps)

Short answer

To remove WordPress from your computer, first delete the local site inside the tool that created it, such as Local or Studio, or delete its folder in htdocs and drop its database in phpMyAdmin if you used XAMPP or MAMP. Then uninstall the local server app itself through your operating system's normal uninstall process. Back up anything you want to keep first.

Key takeaways

  • WordPress on a computer is a local site, made of files plus a database, run by a local server tool.
  • Delete each site inside its tool, or remove its folder and database by hand.
  • Uninstalling the tool afterwards removes the server software itself.
  • Removing a local copy never affects a live site hosted elsewhere.
  • Export or back up any site you might need again before deleting it.

What does it mean to have WordPress on your computer?

WordPress on a computer is a local site: the WordPress files, a database and a small web server running on your own machine, usually installed with a tool such as Local, Studio, XAMPP, MAMP or Docker.

WordPress itself is not a normal desktop program with its own uninstaller. Removing it means deleting the site's files and database, and then removing the tool that ran them if you no longer need it.

If you are not sure what you installed, look in your applications list for a local development tool. Our guide on setting up a local WordPress development environment describes the common ones.

Will removing local WordPress affect my live website?

No. A local site is a separate copy that lives only on your computer, so deleting it does not change, delete or take offline any website hosted with a web host.

The only exception is if you never moved the site online and the local copy is the only version you have. In that case, deleting it removes your only copy.

To remove a live website instead, you need to work with your host. Our guide on removing WordPress from a domain covers that situation.

What should you back up first?

Export any site you may need again: copy its wp-content folder for themes, plugins and uploads, and export its database, or use a migration plugin to create a single backup file.

The wp-content folder holds everything unique to the site except the database. The database holds posts, pages, settings and users.

A migration plugin packs both into one file you can import later. Our guide on migrating with All-in-One WP Migration shows how that works.

If you are certain you will never need the site again, you can skip this step. Deleted local sites cannot usually be recovered.

How do you remove a site created with Local or Studio?

Open the app, right-click or open the menu for the site, choose the delete option, and confirm; the app removes the site's files and database together.

WordPress-focused desktop tools manage each site as a unit, which makes removal simple. Some ask whether to move the files to the trash or delete them permanently.

Repeat this for every site in the app before uninstalling it, starting with the ones you are certain you no longer need. Uninstalling the app alone may leave site folders behind in your user directory.

After deleting sites, check the folder where the app stored them, often a Local Sites or Studio folder in your home directory, and remove any leftovers you no longer need.

How do you remove WordPress from XAMPP or MAMP?

Delete the site's folder inside the htdocs directory, then open phpMyAdmin, select the site's database, and use the Operations tab to drop it.

On XAMPP for Windows, sites usually live in C:\xampp\htdocs. On MAMP, they sit in the htdocs folder inside the MAMP application folder unless you changed the document root.

To find the right database, open the site's wp-config.php file before deleting the folder and note the DB_NAME value. The phpMyAdmin documentation explains the interface if you have not used it before.

Dropping a database is permanent. Double-check the name, especially if several local sites share the same server.

If you want a safety net, export the database first from phpMyAdmin's Export tab. A plain SQL file is small and can be imported again later if you change your mind.

How do you uninstall the local server app?

After removing your sites, uninstall the tool like any other program: through Settings > Apps on Windows, by moving it to the Trash on macOS, or with your package manager on Linux.

Microsoft's guide to uninstalling apps in Windows walks through the Windows steps. Apple's guide to uninstalling apps on a Mac covers macOS.

XAMPP on Windows includes its own uninstaller in the XAMPP folder. Stop Apache and MySQL in the Control Panel before running it, so no files are locked.

Some tools install helper services, such as a background database or virtual machine. Their uninstallers normally remove these, but check that nothing related is still running afterwards.

How do you remove WordPress running in Docker?

Stop the containers, remove them along with their volumes, and delete the project folder; for wp-env, run its destroy command from the project directory.

Docker keeps databases in volumes, which stay on disk until you remove them. Listing and removing unused volumes frees the space they use.

The Docker documentation on volumes explains how to list and remove them safely. Be careful not to remove volumes that belong to other projects.

How do you clean up leftovers?

Check your home folder, the tool's data folder and your browser for leftovers, such as old site folders, log files, local domain entries in the hosts file and saved passwords.

Some tools add entries such as mysite.local to your system's hosts file so the browser can find local sites. Most remove them when you delete the site, but stray lines can remain.

Also clear saved logins and cached pages for local addresses from your browser and its password manager. They are harmless, but removing them keeps things tidy.

How do you free up space without deleting your local sites?

Clear old log files, delete unused themes and plugins inside each site, remove spare backup files and image sizes you do not need, and prune unused Docker images or volumes.

Debug logs can grow surprisingly large if WP_DEBUG_LOG has been on for months. The file usually sits in wp-content as debug.log, and deleting it is safe.

Backup plugins often keep several archive files inside wp-content. Move the ones you want to keep to an external drive, and delete the rest.

Media uploads tend to be the biggest folder. If a local site only exists for testing, you rarely need every original image, so a slimmer copy works just as well.

How do you move a local site to another computer instead?

Export the site with your local tool's export option or a migration plugin, copy the file to the new computer, import it into a local tool there, and then delete the old copy.

Most WordPress-focused tools can export a site as a single archive and import it again. This is the cleanest way to change computers without rebuilding anything.

With XAMPP or MAMP, copy the site's folder from htdocs and export the database from phpMyAdmin, then import both on the new machine. If the local address changes, update the site URL in the database afterwards.

Test the moved site before you remove the original. Open a few pages, log in to the dashboard and check that images load.

Should you remove WordPress or just stop it?

If you might use the site again, stop the local server instead of deleting anything; stopped sites use no memory or processor time and can be restarted in seconds.

Local tools only use resources while running. Quitting the app, or stopping Apache and MySQL in XAMPP, is enough to free your computer.

Delete sites when you need the disk space or are sure you are done with them. Old local copies of client sites may also contain personal data, which is a good reason to remove them once a project ends.

What if WordPress files keep coming back?

If deleted files reappear, a sync service such as a cloud drive may be restoring them, or the tool may still be running; pause syncing, quit the tool, and delete again.

Storing local sites inside a synced folder causes many problems, including slow performance and conflicts. If you build local sites again, keep them outside synced folders.

If a folder refuses to delete because files are in use, restart your computer and try again before the local server starts.

Frequently asked questions

Does deleting WordPress from my computer delete my website?

No. A local site is a separate copy on your computer. Deleting it does not affect any live website hosted online, unless the local copy is the only version you have.

How do I delete the WordPress database in XAMPP?

Open phpMyAdmin at localhost, select the site's database in the left sidebar, open the Operations tab and choose to drop the database. Check the name first, because this cannot be undone.

Is uninstalling Local or XAMPP enough to remove WordPress?

Not always. Delete each site inside the tool first, because uninstalling the app may leave site folders and databases behind in your user or application folders.

Can I keep a backup before removing a local site?

Yes. Copy the wp-content folder and export the database, or use a migration plugin to create a single backup file you can import into another local tool or host later.

How much space does a local WordPress site use?

It varies. The core files are small, but uploads, plugins, logs and databases grow over time, and some tools add virtual machines or containers that take several gigabytes.

Sources

  1. phpMyAdmin documentation phpMyAdmin
  2. Uninstall or remove apps and programs in Windows Microsoft Support
  3. Uninstall apps on your Mac Apple Support
  4. Volumes Docker Docs

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.