Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
Media Hygiene: Remove or Delete Unused Images and More! icon

Media Hygiene: Remove or Delete Unused Images and More!

v6.1.1
by slui · 4.2 (41 reviews)

The Media Hygiene plugin removes unused media from the WordPress library to free up space, reduce clutter, and improve server performance.

4K+ active installs Updated Oct 12, 2026 Tested to 7.1.5 Requires PHP 8.0
Try Demo Download
Pre-installed Ready in ~10s No card
Media Hygiene: Remove or Delete Unused Images and More!

About Media Hygiene: Remove or Delete Unused Images and More!

The Media Hygiene plugin helps WordPress users clean up their media library by removing unused images, freeing up space, and improving server performance. It offers features like bulk delete and deep folder scanning to make the process of finding and deleting unused media easy and efficient. Compatible with major WordPress builders and plugins, Media Hygiene is a versatile tool for keeping your media library organized and your website running smoothly.

Screenshots

Media Hygiene: Remove or Delete Unused Images and More! screenshot
Media Hygiene: Remove or Delete Unused Images and More! screenshot
Media Hygiene: Remove or Delete Unused Images and More! screenshot
Media Hygiene: Remove or Delete Unused Images and More! screenshot
Media Hygiene: Remove or Delete Unused Images and More! screenshot

Changelog

6.1.1

  • Fixed: updating from 6.0 could show a server error on the update screen. The update itself finished correctly, and the site was not affected.
  • Changed: the deactivation feedback form is now only added to the Plugins screen, instead of to every admin page.

6.1.0

This release is mostly about trust: files that were being listed as unused when they were still on your site, and warnings that were telling you the wrong thing.

Files that were in use, but listed as unused:

  • Fixed: your site logo could show as unused on almost every theme. Site logos, site icons, and any image set in the Customizer are now recognised.
  • Fixed: on a block theme, images placed in a header, footer or page template through the Site Editor were never checked, so they could show as unused. Templates, template parts and reusable blocks are now included in every scan.
  • Fixed: images in your widgets and in Additional CSS were not checked, and could show as unused.
  • Fixed: a file could be wrongly held back from your unused list because of a mix-up with unrelated theme settings. Across five real sites this cut the number of files being guessed at from 79 to 2.

Safer deleting:

  • Added: deleting permanently now asks you to confirm, twice for a bulk delete and once for a single file. It asked nothing at all before, while moving files to Trash asked twice. Trash can be undone and permanent deletion cannot, so the warnings were the wrong way round.
  • Added: moving files to Trash now asks you to confirm once, and tells you how many files.
  • Fixed: Restore All on the Trash tab could say everything was restored while files were still sitting there. It now keeps going until the Trash is genuinely empty, and tells you if a file could not be restored.
  • Fixed: whitelisting a file could quietly remove it from your unused list without actually adding it to the whitelist. This also affected restoring from the whitelist and the bulk versions of both.
  • Fixed: the message confirming files had been moved to Trash did not always appear, and its link went to the Media Library rather than the Trash tab.

Clearer about what the free version can and cannot see:

  • Changed: when the plugin cannot read media held by another plugin, it now tells you how many files and which plugin holds them, instead of giving a vague warning. When there is nothing to report it stays quiet.
  • Added: for Advanced Custom Fields and Secure Custom Fields, the plugin tells you how many media fields are set up on your site, so you know where to check before deleting.
  • Changed: the dashboard now says plainly that the free version reads your posts and pages, and that media kept in a theme option, a plugin field or a store product is outside that scan.

The summary email:

  • Fixed: the email setting showed “Disabled” while the plugin was quietly sending it every three months. The setting and the behaviour now match, and the default is monthly.
  • Fixed: pictures in the email were being sent at full size, so opening it could pull down tens of megabytes to show a row of thumbnails. It now uses the small version WordPress already made.

Finding your way around:

  • Changed: Media Hygiene now takes a single row in the WordPress menu instead of repeating the same four links in two places.
  • Fixed: the “View Error Log” link in Settings did nothing. It is now the Scan Log, and it records what each page builder reader found during a scan.
  • Changed: the “Download Media” button is now “Download Current Page Media”, because that is all it ever did.
  • Fixed: the help popups on the Scan, Download and Trash buttons closed before you could click the link inside them.
  • Fixed: after a scan finished, the page stayed scrolled below the results, so a scan that had worked did not look like it. It now returns to the top.

Also in this release:

  • Faster: large media libraries are noticeably quicker to check for new files.
  • Faster: the plugin no longer adds weight to every page load of your site.
  • Fixed: a scan could end on a blank page instead of a message, usually on a brand new install or after an interrupted scan.
  • Added: the plugin can now be translated. It had no translation file before, so translators had nothing to work from.
  • Tested with WordPress 7.1.3.

6.0.0

Released 25 May 2026

  • Rewritten scan engine: it reads your page content directly instead of making an HTTP request for every URL.
  • Scanning is significantly faster on large media libraries, with up to 30 times fewer database queries per batch and lower memory use.
  • A single problem item no longer stops the whole scan.
  • Clear error messages when a scan step fails, instead of a scan that simply stops.
  • Hardened the handling of background requests.
  • Contact details in the deactivation form are only sent if you tick the box.
  • Tested with WordPress 7.0.0.

5.0.0

Released 25 April 2026

  • Hardened every database query against SQL injection.
  • Fixed a cross site scripting issue in the copy media URL action.
  • Server errors are no longer shown in the browser.
  • Anonymous usage data is now opt in. Nothing is sent unless you agree.
  • The deactivation feedback form now has an opt in checkbox.
  • Fixed dashboard figures showing the wrong values.
  • Fixed the count on the Unused tab not updating when a filter was applied.
  • Download and Trash now respect the filter you have applied.
  • Fixed the last scan date showing incorrectly.
  • Lower memory use during a scan and while building a download.
  • Removed PHP notices in some setups.
  • Minimum PHP version raised to 8.0.

4.0.2

Released 28 March 2026

  • Fixed missing permission checks on background requests, which now refuse unauthorised calls.
  • Fixed SQL injection risks in the whitelist, bulk action, scan, Elementor and download handlers.
  • Fixed unescaped output in the security token handlers.
  • Fixed an email header injection risk in the scheduled notification.
  • Fixed unescaped links in the scheduled email.
  • Fixed the file version used for cache busting, so updated files reach browsers.

4.0.1

Released 1 May 2025

  • Security release.

4.0.0

Released 26 November 2024

  • Rebuilt how Elementor content is scanned.
  • Added Trash, so files can be removed and restored rather than deleted outright.
  • The position of Media Hygiene in the WordPress menu can now be changed.

3.0.1

Released 3 July 2024

  • Security release.

3.0.0

Released 27 April 2024

  • Added a setting for how many results to show per page.
  • Added the email notification telling you about media uploaded since your last scan.
  • Improved detection of background images.

2.0.0

Released 20 November 2023

  • Reworked the interface for readability.
  • General performance improvements.
  • Confirmed PHP 8.1 compatibility.
  • Updated error log handling.
  • Updated data privacy handling.
  • Added the option to exclude CSS files from a scan.
  • Added a FAQ tab.
  • Added LiteSpeed Cache compatibility.
  • Fixed the settings page failing to load.
  • Fixed a scan that could get stuck.

1.0.5

Released 8 September 2023

  • Improved detection of images in page source code.
  • Added support for WP Engine server setups.
  • Added the deactivation feedback form.
  • Improved the dashboard interface.

1.0.4

Released 12 July 2023

  • Performance and compatibility improvements.

1.0.3

Released 17 June 2023

  • Performance improvements.

1.0.2

Released 25 April 2023

  • Added compatibility with the Astra and OceanWP themes.

1.0.1

Released 10 April 2023

  • Improved detection for the Enfold theme.
  • Better scan notices for themes and plugins.

1.0.0

Released 6 April 2023

  • First release.

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…