Remove unused WordPress plugins and themes safely

Switched-off plugins still sit on your server. A safe, step-by-step routine to find, back up, deactivate and delete the plugins and themes you don't use.

If a plugin is switched off, can it still cause trouble? WordPress itself thinks so. Open Tools → Site Health on a site with switched-off plugins and you will see the warning “You should remove inactive plugins”, followed by a blunt explanation: inactive plugins are tempting targets for attackers.

Introduction

Most WordPress sites collect plugins the way a kitchen drawer collects takeaway menus. One was installed for a sale banner two years ago, another to test a gallery, a third by a developer who has since moved on. They get deactivated and forgotten, but their files stay on the server.

WordPress’s own security guidance is short on this point. The Hardening WordPress page in the Advanced Administration handbook (updated 14 October 2026) says to keep plugins updated and, if you are not using a plugin, to delete it. The same goes for themes you no longer use.

This tutorial walks through doing that safely, in an order that lets you undo any mistake. We wrote the steps against WordPress’s documentation for the 7.1 series; WordPress 7.1.5 was the current version on wordpress.org when we checked on 24 November 2026. Menu names may shift slightly in WordPress 7.2, due on 8 December.

What it actually means

Why “inactive” is not the same as “gone”

Deactivating a plugin stops WordPress from running it on your pages. The plugin’s files are still sitting in your site’s folders, though, and an attacker who finds a weakness in one of those files may be able to reach it directly. Inactive plugins also tend to miss updates, because nobody is looking at them.

Deleting is the step that removes the files. According to the plugin handbook’s page on uninstall methods, deleting a plugin from the dashboard is also when the plugin’s own clean-up code runs, which is what removes its settings and database tables. Deactivating does not do that. How thorough the clean-up is depends on each plugin’s developer.

A six-step flow for removing WordPress plugins safely: back up, list what is installed, decide keep or remove, deactivate and check, delete, then check again
The order we follow on client sites. Deactivating first means a mistake can be undone with one click. AI-generated graphic.

Step 1: take a backup you can restore

Before you remove anything, take a full backup of your files and database, and make sure you know how to restore it. Our guide to website backups and restore tests covers this. If your host offers one-click restore points, make one now and note the time.

Step 2: list what is installed

Go to Plugins → Installed Plugins. At the top of the list you will see filters such as All, Active and Inactive. Click Inactive to see everything that is switched off.

Then go to Tools → Site Health and open the Status tab. If you have inactive plugins or themes, it says so, and for plugins it links straight to the list. Write the list down, with a note of what each plugin was for if you know.

Step 3: decide what to keep, remove or replace

For each plugin, ask two questions: do we still need what it does, and is it still looked after?

To answer the second, find the plugin on wordpress.org. Look at when it was last updated, and at the warning the directory shows when a plugin has not been tested with the last three major WordPress releases. If the directory says the plugin has been closed and is no longer available, treat that as a firm reason to remove it. For premium plugins, check the seller’s changelog instead.

Anything inactive that you do not need goes on the remove list. Anything active that you need but that is no longer maintained goes on a separate replace list, which is a bigger job and best done with your developer.

Step 4: deactivate first, then check the site

Plugins on your remove list that are still active should be deactivated before anything is deleted. Tick them on the Installed Plugins screen, choose Deactivate from the Bulk actions menu and apply.

Now use the site the way a customer would. Open the homepage, a few inner pages, the contact form and, if you have one, the checkout. Send yourself a test enquiry. If anything looks wrong, reactivate the last plugin you switched off and you are back where you started. Where we can, we leave a day between deactivating and deleting on a busy site.

Step 5: delete

Back on the Inactive list, click Delete under each plugin you are removing and confirm. Before you do, open the plugin’s settings once more: some plugins ask whether to keep or remove their data when deleted. If you might come back to a plugin later, keeping its data can save you set-up time.

A few plugins live in a special folder called mu-plugins (“must-use”) and do not show a Delete link. WordPress’s Manage Plugins guide explains that these can only be removed by deleting the file from that folder, which is a job for your developer or host.

Step 6: tidy up themes

Go to Appearance → Themes, click an unused theme and choose Theme Details, then use the Delete link in the corner of that panel. You cannot delete the theme your site is using.

Do not remove every theme other than your own, though. Site Health’s own advice is to keep your active theme, its parent theme if it has one, and one default WordPress theme, because WordPress uses a default theme automatically if anything goes wrong with yours.

Step 7: check again

Run Site Health once more, browse the site, and send another test through your forms. Then make a fresh backup, so your next restore point is the clean version.

A real-world example

Take a family-run handloom saree shop in Kanchipuram with a WooCommerce site. (This example is invented.) The site had 31 plugins installed and 12 inactive, including two slider plugins, an old Facebook feed and a coming-soon page from launch day.

After a backup, the owner’s nephew sorted the list on a Sunday morning. Ten inactive plugins were clearly unused and were deleted. One inactive plugin turned out to hold the shop’s old customer import settings, so its data was exported first. One active plugin, a size-chart tool, had not been updated in four years; it went on the replace list for their developer. The whole tidy-up took under two hours, and the Site Health warning disappeared.

Why it matters for your site

Every plugin you keep is something that has to be updated, checked after WordPress releases and trusted with your site. Removing the ones you do not use shrinks that list for free. It also makes your next update day quicker and any problem easier to trace, because there are fewer suspects.

We do this review on our care-plan sites every few months. You can do it yourself with nothing more than the dashboard and a backup. If you want a broader routine, our post on updating plugins without breaking your site pairs well with this one.

The quick takeaway

  • Deactivating a plugin leaves its files on your server; deleting removes them.
  • Back up first, deactivate and test, then delete.
  • Keep your active theme, its parent and one default theme; remove the rest.

Your turn

Open Plugins → Installed Plugins and click Inactive. How many are there, and can you say what each one was for? If you cannot, that is your list for this weekend.


Image credits: Banner photo by Pixabay on Pexels. Diagrams and illustrations marked as such were created with AI (Claude) for iZenesis.

Keep reading

More from the journal

Want a calmer, faster website?

Personal attention, friendly support whenever you need it, and a strong emphasis on security and robustness. Tell us what you are working on.