Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared Managed Cloud India
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
Best lists Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we test

Backups & maintenance · Guide

How to Remove Unused Plugins and Themes Safely

How to Remove Unused Plugins and Themes Safely

Short answer

Back up your files and database first, then open Plugins > Installed Plugins, filter by Inactive, and delete one or two plugins at a time, testing key pages after each batch. Delete unused themes from Appearance > Themes, keeping your active theme and one default theme as a fallback.

Key takeaways

  • Deactivating stops a plugin from running, but only deleting removes its files from the server.
  • Site Health lists removing inactive plugins and themes as recommended improvements.
  • WordPress suggests reviewing plugin versions every 3 to 6 months.
  • Delete one or two plugins at a time so a broken page points at one change.
  • Deleting a plugin removes its files, but its settings and tables may stay behind.
  • Keep one default theme installed as a fallback if your active theme breaks.

Why should you remove unused plugins and themes?

Unused plugins and themes add risk and clutter even when they sit idle on your site.

An inactive plugin still has files on your server, and those files can hold flaws that attackers probe. The same goes for an inactive theme, which is still PHP code that WordPress can load. Removing what you do not use shrinks the code an attacker can reach.

WordPress Site Health flags this directly. Its checks include “You should remove inactive plugins” and “You should remove inactive themes” as recommended improvements, as noted in WordPress's own housekeeping guide. Treat those notices as a cleanup list, not as noise.

What is the difference between deactivating and deleting a plugin?

Deactivating stops a plugin from running, while deleting removes its files from the server.

A deactivated plugin keeps its files, its settings, and its database tables. WordPress only counts a plugin as uninstalled once you deactivate it and then click Delete, as the Plugin Handbook states. Deactivation alone leaves everything in place.

That split matters for safety. Deactivation is easy to undo, so use it first when you are not sure a plugin is unused. Deletion is the step that actually removes the code from your server.

ActionPlugin runs?Files on server?Settings kept?
ActiveYesYesYes
DeactivatedNoYesYes
DeletedNoNoOnly if the plugin has no cleanup code

How do you back up before you start?

Take a full backup before you delete anything, so a mistake costs minutes instead of hours.

A full backup means both parts of the site: the files and the database. WordPress's housekeeping guide pairs backup advice with plugin checks and suggests reviewing plugin versions every 3 to 6 months. Use that same rhythm for cleanups.

Store the backup somewhere off the server, such as your computer or cloud storage. A backup that lives only on the same hosting account does not help if the account itself fails. Confirm the backup file exists and has a sensible size before you touch any plugin.

Follow the steps in our guide to back up a WordPress site if you have no backup routine yet. A backup plugin or your host's backup tool both work for this job.

How do you find plugins you no longer use?

Open the Installed Plugins screen and sort by status to see what is actually running.

Go to Dashboard > Plugins > Installed Plugins and click the Inactive link above the list. That filter shows every installed plugin that is switched off. Click a plugin name to open its details and check what it does before you decide.

Ask four questions about each inactive plugin: does any page or feature need it, does another plugin already do the same job, when did you last use it, and is it still updated?

If no page needs it and you have not used it in months, it is a removal candidate.

Check Site Health too. Go to Tools > Site Health and open the Status tab, where WordPress lists recommended improvements. The page names inactive plugins and themes you should remove, which gives you a second view of the same list.

Also look for duplicate tools. Two contact form plugins, two SEO plugins, or two caching plugins usually mean one of them is spare. Keep the one that is active and delete the other after you confirm the active one covers the job.

How do you delete a plugin safely?

Delete in small batches and check the site after each batch.

WordPress's housekeeping guide gives the official steps: go to the Plugins screen, find the plugin, click Deactivate, then click Delete. The plugin then runs its own deactivation and deletion steps.

Only an Administrator can delete plugins, since the roles and capabilities guide reserves plugin management for that role on a single site.

Follow these steps for each plugin:

  1. Open Dashboard > Plugins > Installed Plugins.
  2. Click Deactivate under the plugin name and wait for the page to refresh.
  3. Load your home page and one page that used the plugin's feature.
  4. If both pages look right, click Delete under the plugin name.
  5. Confirm the deletion when WordPress asks if you are sure.
  6. Load the home page again and check for errors.

Delete one or two plugins at a time, not ten at once. A small batch makes it easy to tell which deletion caused a problem if a page breaks. If a page does break, reinstall the plugin from the directory and restore the backup you made first.

Some plugins ask during deletion whether to remove their data too. Read that prompt before you click, because the choice decides whether settings stay behind. The next section explains what stays behind and why.

How do you delete a theme safely?

Delete themes from the Themes screen, and keep your active theme plus one default theme.

WordPress's housekeeping guide gives these steps: log in to the admin screen, select Appearance > Themes, open Theme Details for the theme you want to remove, and select Delete near the bottom-right corner. Never delete the theme that is currently active.

Keep one default theme, such as Twenty Twenty-Five, as a fallback. If your active theme breaks after an update, WordPress can fall back to the default theme instead of showing a blank site. That fallback is the reason the default theme earns its place.

Watch out for child themes. A child theme needs its parent theme to work, so deleting the parent breaks the child. Check the child theme's details first: if it names a parent, keep that parent installed even though it looks inactive.

Delete themes one at a time and load the site after each one. A theme deletion rarely breaks a site, but a quick check costs seconds and catches the rare case where a page template came from the deleted theme.

What data stays behind after you delete a plugin?

Deleting a plugin removes its files, but its settings and tables may stay in the database.

WordPress runs the plugin's uninstall code when you delete it from the Plugins screen. The Plugin Handbook explains that a plugin can clean up with an uninstall.php file or with register_uninstall_hook(). Both methods run only on delete, never on deactivation.

Many plugins ship no cleanup code at all. In that case WordPress deletes the files and stops there, so settings, tables, and uploaded files remain.

Kinsta's uninstall guide shows the scale of the problem: deleting Wordfence left behind 24 tables in the database.

That is normal behavior, not a bug, and it protects users who delete and reinstall a plugin to fix a broken update.

Check the plugin's own settings page before you delete it. Many plugins include a “delete all data on uninstall” checkbox that is off by default. Turn it on only if you are sure you will never need the old settings again.

If leftover data bothers you, use a database cleanup plugin after the deletion, or ask a developer to remove the named tables. Do not delete database tables by hand unless you can name each table and know which plugin made it.

How long does a cleanup take, and how often should you do it?

A cleanup of a small site takes 30 to 60 minutes, including the backup and the checks.

The backup takes most of that time on a large site. The deletions themselves take minutes, but the checks after each batch add up. Budget an hour for a site with more than 20 plugins, and half an hour for a small blog.

Repeat the review every 3 to 6 months, matching the rhythm in WordPress's housekeeping guide. A short review after each plugin change also helps: when you replace a tool, delete the old one in the same session instead of leaving it installed “just in case.”

Pair the cleanup with the checks in our guide to use Site Health in WordPress. Site Health re-runs its checks after each deletion, so you can watch the warnings clear as you work.

What mistakes should you avoid?

Deleting everything at once is the most common mistake.

A bulk deletion hides which plugin caused a problem, and a broken page then takes far longer to fix. Delete one or two at a time and load key pages after each batch.

If you need to find which plugin breaks a page, read our guide to find which plugin is causing a problem.

A second mistake is deleting a plugin that still runs part of the site. Shortcodes, widgets, and blocks from a deleted plugin stop rendering and can leave raw text on the page. Search your content for the plugin's shortcode before you delete it.

A third mistake is deleting the default theme. Keep one default theme installed as a fallback, even if you never activate it. A fourth mistake is skipping the backup, which turns a five-minute fix into a rebuild.

A fifth mistake is treating deactivation as removal. A deactivated plugin still sits on the server with its files intact, so finish the job with Delete once you are sure. Check abandoned plugins too with our guide to find abandoned WordPress plugins before you decide what stays.

Note: if a deletion breaks the site and you cannot reach the admin area, restore the backup from your host panel instead of guessing at file edits.

Frequently asked questions

Is it safe to delete a deactivated plugin?

Usually yes, once you have a backup and have checked that no page uses it. Deactivate it first and load your key pages. If they still work after a few days, delete it. Search your content for its shortcode before deleting, since shortcodes stop rendering once the plugin is gone.

Should I keep a default WordPress theme installed?

Yes. Keep one default theme, such as Twenty Twenty-Five, even if you never activate it. If your active theme breaks after an update, WordPress can fall back to the default theme instead of showing a blank site. Delete other unused themes, but leave the fallback alone.

Does deleting a plugin remove its data from the database?

Not always. WordPress runs the plugin's uninstall code when you delete it, but many plugins ship no cleanup code, so settings and tables stay behind. Some plugins offer a delete-all-data checkbox on their settings page. A database cleanup plugin can remove leftovers after deletion.

How often should I clean up plugins and themes?

Review them every 3 to 6 months, matching the rhythm in WordPress's housekeeping guide. Also clean up right after you replace a tool, so the old one does not sit installed for months. A short review after each plugin change keeps the list small.

Can I delete a theme that looks inactive if it is a parent theme?

No, not if a child theme uses it. A child theme needs its parent theme to work, so deleting the parent breaks the child. Check the child theme's details first. If it names a parent, keep that parent installed even though it looks inactive.

Sources

  1. WordPress Housekeeping WordPress.org
  2. Uninstall Methods WordPress Developer Resources
  3. Roles and Capabilities WordPress.org
  4. How to Uninstall a WordPress Plugin (the Proper Way) Kinsta
  5. User management Learn WordPress

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

WPLegible editors

Researched from the primary sources listed above and checked against our editorial rules. About the site · How we test