Media Hygiene: Remove or Delete Unused Images and More!
View on WordPress.orgScores higher than 53% of indexed plugins
About
The Media Hygiene plugin removes unused media from the WordPress library to free up space, reduce clutter, and improve server performance.
Security History
What It Does
Media Hygiene scans your WordPress Media Library for images and other attachments that are no longer referenced in posts, pages, or other content, then lets you delete them to reclaim disk space. It also flags orphaned files, duplicate media, and oversized images that may be slowing your site. In short, it is a janitor for the uploads folder, especially useful on sites that have accumulated years of unused media.
Who It's For
This plugin fits WordPress sites with large or aging media libraries, particularly content-heavy publishers, news sites, e-commerce stores that swap product images often, and agencies tidying up after client handoffs. Photographers replacing portfolio images and small businesses on tight hosting plans will also benefit from the disk-space recovery. Anyone with fewer than a few hundred unattached files will see limited gain.
Who Should Skip It
If your media library is small, recently built, and already well managed, this plugin adds little value and the risk of accidental deletion may outweigh the benefit. Sites running custom queries, page builders, or ACF that reference media outside the standard content fields should also skip it, since the scan can misidentify files in active use as orphaned.
The Bottom Line
Media Hygiene is a focused, well-maintained tool that does one job, cleaning unused media, and does it on modern WordPress and PHP. Its overall score of 76.07 reflects solid maintenance and compatibility offset by a small user base and weak public support presence. For sites with genuinely bloated media libraries, it is worth trying with a backup in hand; for everyone else, a more general cleaner like WP-Sweep may be the safer bet.
Related Plugins
Pick Autoptimize instead if your main concern is frontend performance through CSS, JS, and HTML minification rather than media cleanup.
Choose WebP Express if you want to shrink image file sizes through format conversion rather than delete unused images.
Opt for Responsive Lightbox & Gallery if you need better image display and gallery features, not library cleanup.
Pick Advanced Database Cleaner when the goal is broader database optimization, including revisions, transients, and options, beyond just media.
Choose WP-Sweep if you want a more established all-purpose cleanup tool that also sweeps drafts, revisions, and orphaned metadata with a larger install base.