Media Hygiene: Remove or Delete Unused Images and More!
Find and delete unused images in your WordPress media library, free up hosting space, and keep your backups small.
Safe pick
Yes — Media Hygiene: Remove or Delete… is a safe, well-maintained plugin to use in 2026. It runs on 4K+ sites, is rated 4.2/5 and was last updated 2 months ago, and scores 85/100 on our health check.
- Tested with the latest WordPress (7.1)
How does it stack up?
Side-by-side on installs, updates, ratings & supportDaily downloads
Download spikes usually follow a new release — each site that auto-updates counts as a download.
Rankings
Where Media Hygiene: Remove or De… stands todayWordPress.org search rankings
Live position in the plugin search, top 100| Keyword | Position |
|---|---|
| delete unused images | #3 |
| media cleanup | #8 |
| media library | #44 |
| unused images | #3 |
| unused media | #4 |
Version adoption
Share of active sites per release.
Rating breakdown
★★★★★★★★★★ 4.2 from 41 reviews
About Media Hygiene: Remove or Delete Unused…
From the official readme · v6.1.1Description
Old logos. Images from last year’s redesign. Uploads you tried once and forgot about. A WordPress media library keeps growing long after you have stopped using some of what is in it.
Media Hygiene finds the files worth a second look. Scan your library, review what appears unused, and decide what stays. Clearing out what you no longer need reclaims storage and makes every future backup smaller.
It suits blogs, business sites and client work. Start small, or filter a large library down into groups you can actually work through. No coding needed.
How it works
-
Scan your library. The plugin looks for references to your images, documents, audio and video across the content sources it supports.
-
Review the results. You get names, URLs and sizes, so you can open a file or copy its address and check for yourself.
-
Keep what matters. Add anything you want to protect to the whitelist and it stays out of every future scan.
-
Finish when you are ready. Move files to Trash, restore them if you change your mind, or delete them permanently.
You stay in control throughout. Nothing is deleted unless you select it and confirm. An unused result means no reference was found in the places the plugin reads, which is why the review step matters. Keep a backup before you delete anything.
Some use cases for website owners
-
Unable to keep track of unused media files in the media library.
-
Uploading the same images in different sizes to figure out optimal size and forgetting which one was actually used.
-
Switching out an image in a post with another and can’t find it media library file.
-
Updating the logo with a new version and don’t want the old one to be indexed by Google.
-
Images included with purchased theme but never deleted after site was launched.
-
After a website was redesigned or rebranded, there may a number of old images or media files no longer in use.
-
Before migrating to a new hosting provider, cleaning up the media library may make it a smoother and faster migration process.
-
Getting a warning from your hosting provider that you are hitting the storage limit, make your backups smaller.
-
You have guest posts or contributors who may have left behind a number of images.
-
Changing your product listings or discontinuing products in e-commerce sites may mean images are left unused.
-
After trying out a theme, deactivation of theme may leave behind media files.
How is it Different?
- Media Hygiene Pro scans the entire website using a number of different techniques. One way is to “visualize images/media in page source code” to confirm the existence of a media file even when builders/plugins/themes use specialized custom posts to display their widgets on-screen.
File Types:
- Media Hygiene will recognize most if not all major file types stored in the WordPress media library. This includes but not limited to PDF, jpg, png, gif, mp4, mp3, csv, zip, rar, and txt files. We also cover alternative extension spelling such as jpeg.
Standard Features:
-
Dashboard – shows list of all unused media by occupied space and by type.
-
Notifications – a summary email when new files have been uploaded since your last scan. Monthly by default, and you can change it to daily, weekly, bi-weekly or quarterly, or switch it off, in Settings.
-
Site builder compatibility – detects media placed with Gutenberg, Elementor, Divi, Bricks, Visual Composer and OceanWP on pages and posts, plus sliders built with LayerSlider (see list below).
-
Whitelist – keep files safe from deletion. Perfect for files linked to from off-site sources.
-
Filtering – files by name, by year and month, and by category: images, video, audio, documents or others.
-
Page size – show between 1 and 200 results at a time. The default is 10.
-
Exclude file types – leave chosen extensions out of the scan in Settings. Font files and CSS are excluded already.
-
Backup – download unused media file individually or by page.
-
Delete – remove files individually or by page.
-
Scan – scanning process for all media files not linked to any page/post or other theme settings.
-
Support – only through WordPress repository.
Changelog
Full version history is at the bottom of this page, and also at mediahygiene.com/changelog.
Compatibility
Please check our website to see a complete list of compatible plugins/themes.
Detected by the free version, on pages and posts:
-
Gutenberg
-
Elementor (builder)
-
Bricks (builder)
-
Divi (builder)
-
Visual Composer (builder)
-
OceanWP (theme)
-
LayerSlider (slider plugin, bundled with the Enfold theme)
Pro adds the same builders in templates, theme options, headers, footers and custom post types, plus WP Bakery, Beaver Builder, Avada and Flatsome, and media stored by WooCommerce, ACF, Pods, Custom Field Suite, the SEO plugins and the slider plugins.
- More to come…
What it reads, and what it does not
We would rather tell you this up front than have you find out after deleting something.
The free version finds media by reading your posts and pages, including the page builders listed above, your Site Editor templates, your widgets and your site logo.
Some plugins store images as an ID number rather than a link. Advanced Custom Fields, WooCommerce product galleries, Pods, Custom Field Suite, the SEO plugins and the slider plugins all work that way. The free version cannot follow those, so an image used only in one of those places can appear in your unused list while your site is still using it.
It tells you when that applies to your site. If one of those plugins is holding media, the dashboard says so, with a count and the plugin name, before you delete anything. A file can also be referenced by a shortcode or a dynamic tag that builds the link when the page loads, and those cannot be counted in advance.
So treat the results as a list to review rather than a verdict, and keep a backup before deleting. Pro reads all of the above.
Pro
Pro reads the places the free version cannot.
Media stored by plugins
- Advanced Custom Fields, including image, gallery, file and repeater fields
- WooCommerce product galleries, category images, downloadable files and custom tabs
- Pods
- Custom Field Suite
- Jet Engine
- Yoast SEO, All in One SEO and SEO Press
- Slider Revolution, Meta Slider and Smart Slider
Wider coverage of the builders
The free version reads page builders on your pages and posts. Pro also reads saved templates, headers, footers, theme options and custom post types, so a template reused across the site is not mistaken for unused content.
Stronger matching
Pro matches resized copies, scaled, rotated and edited versions back to the original file, follows references inside JSON and serialized data, and works on sites where the uploads folder has been moved.
Tools
- Folder Scan, which checks the uploads folder for files with no database record at all
- Quarantine, which moves files aside first so you can restore them if something was in use
- One shot download and one shot delete for the whole list rather than a page at a time
- Filter by year and by file type
- WP-CLI commands for large libraries, so a scan is not limited by browser timeouts
- Direct support from the plugin
Coming to Pro
- Meta Box
- CPT UI
- Remote server backup and restore
- Scheduled scans, so a scan can run on a timer rather than being started by hand
- WPML, Weglot and TranslatePress
Installation
From Your WordPress Dashboard
- Go to Plugins >Add New
- Search for Media hygiene
- Click on Install Now Button
- Click on Activate Now After successfully installed in your site.
From WordPress.org
- Download Media hygiene
- Upload the media-hygiene folder to the /wp-content/plugins/ directory
- Activate Media hygiene plugin from your plugins page.
Changelog
Fixes a server error that could appear on the update screen when updating from 6.0.
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.
For developers
Is this your plugin? Show off the numbers.
Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.
Best Media Hygiene: Remove or Dele… alternatives
All delete unused images plugins →FAQ
Media Hygiene: Remove or Delete Unu…: quick answers
Straight answers, pulled from live WordPress.org data.
Source: WordPress.org
Is Media Hygiene: Remove or Delete… free?
Yes. Media Hygiene: Remove or Delete… is free to download and use from the official WordPress.org plugin directory.
Is Media Hygiene: Remove or Delete… safe to use in 2026?
Yes — Media Hygiene: Remove or Delete… is a safe, well-maintained plugin to use in 2026. It runs on 4K+ sites, is rated 4.2/5 and was last updated 2 months ago, and scores 85/100 on our health check.
How many websites use Media Hygiene: Remove or Delete…?
Media Hygiene: Remove or Delete… is active on 4K+ WordPress websites and has been downloaded 67,682 times since it launched in April 2023. It was downloaded 1,919 times in the last 30 days.
Does Media Hygiene: Remove or Delete… work with WordPress 7.1?
Yes. The developer has tested Media Hygiene: Remove or Delete… up to WordPress 7.1.5, the latest release. It requires WordPress 5.3 or newer.
What PHP version does Media Hygiene: Remove or Delete… need?
Media Hygiene: Remove or Delete… requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.
When was Media Hygiene: Remove or Delete… last updated?
The latest version, 6.1.1, was released on October 12, 2026 (2 months ago).
Who makes Media Hygiene: Remove or Delete…?
Media Hygiene: Remove or Delete… is developed and maintained by slui.
What are the best alternatives to Media Hygiene: Remove or Delete…?
The most popular alternatives to Media Hygiene: Remove or Delete… are MGCora Unused Media Cleaner (20+ installs), Gogasys Media Cleaner: Clea… (20+ installs) and Pro Uploads Cleaner (10+ installs).
Powered by PageForge
One template and a spreadsheet. A real page for every search.
PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.
- CSV and XLSX, plus Google Sheets on Professional and Enterprise
- Its own title, URL, SEO fields and schema for every page
- Works with the block editor, Elementor, Divi and Avada
- Free on WordPress.org, no credit card





