Title: Media Hygiene: Remove or Delete Unused Images and More!
Author: slui
Published: <strong>April 6, 2023</strong>
Last modified: March 28, 2026

---

Search plugins

![](https://ps.w.org/media-hygiene/assets/banner-772x250.jpg?rev=2897293)

![](https://ps.w.org/media-hygiene/assets/icon-256x256.jpg?rev=2949905)

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

 By [slui](https://profiles.wordpress.org/slui/)

[Download](https://downloads.wordpress.org/plugin/media-hygiene.4.0.2.zip)

 * [Details](https://co.wordpress.org/plugins/media-hygiene/#description)
 * [Reviews](https://co.wordpress.org/plugins/media-hygiene/#reviews)
 *  [Installation](https://co.wordpress.org/plugins/media-hygiene/#installation)
 * [Development](https://co.wordpress.org/plugins/media-hygiene/#developers)

 [Support](https://wordpress.org/support/plugin/media-hygiene/)

## Description

The Media Hygiene plugin removes unused media from the WordPress library to free
up space, reduce clutter, and improve server performance. With features like bulk
delete and deep folder scanning, it’s a must-have for finding and deleting unused
images and media.

### Introducing Media Hygiene

Introducing the Media Hygiene plugin – the ideal solution for optimizing your WordPress
media library! With this powerful plugin, you can quickly and easily remove all 
unused images, reducing clutter, and freeing up valuable server space. This plugin
is a must-have for anyone looking to delete unused images in WordPress or remove
unused images from the media library.

Media Hygiene is fully compatible with major WordPress builders, including plugins
like WooCommerce, custom fields and posts plugin, sliders, SEO, and more – making
it versatile and convenient for all types of WordPress users. Unique features like“
One shot delete” and “One-shot download” allow you to bulk delete media and download
all images from the WordPress media library make it easy to keep your media library
organized and up-to-date.

Making offsite backups? Reduce the time and cost of disk space with a smaller backup
file size.

Say goodbye to a cluttered and disorganized WordPress media library, and hello to
a cleaner, more efficient WordPress site! Whether you’re an agency, blogger, photographer,
or business owner, Media Hygiene is the perfect tool for keeping your media library
in tip-top shape.

Get it now and keep your WordPress site super clean!

### 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](https://mediahygiene.com) 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 – get email notifications when new files have been uploaded and
   not scanned on a specific schedule (daily, weekly, bi-weekly, monthly, quarterly)
 * Site builder compatibility – works with all major site builders such as Elementor(
   see list below).
 * Whitelist – keep files safe from deletion. Perfect for files linked to from off-
   site sources.
 * Filtering – files by name and date.
 * 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

**[Check latest here](https://mediahygiene.com/changelog/)**

### **󠀁[Compatibility](https://mediahygiene.com/compatibilities/)󠁿**

Please check our website to see a completely list of compatible plugins/themes.

 * Gutenberg – Standard
 * Elementor Basic – Standard
 * Bricks (builder)
 * Divi (builder)
 * WP Bakery Page Builder (builder)
 * Beaver Builder (builder)
 * Visual Composer (builder)
 * Avada (theme)
 * Enfold (theme)
 * Flatsome (theme)
 * More to come…

### **󠀁[Pro](https://mediahygiene.com)󠁿** (available now)

 * Customer Support – directly from the plugin – Pro
 * Faster scanning through the use of WP-CLI (WordPress command line interface)
 * Unique scanning process for multiple page builders with one click
 * Advanced Filtering – Pro
    - Media Filter by Year
    - Media Filter by Type (jpg, png, gif, wmv, mp4, etc.)
 * One Shot Download (all files)
 * One Shot Removal (all files)
 * Folder Scan (sub-folder scanning coming soon!)
 * Woocommerce
 * Custom Post Types
 * SEO Plugins
    - All in One
    - Yoast
    - SEO Press
 * Custom Fields Plugins – Pro
    - ACF
    - Pods
    - Custom Field Suite
    - Custom Post Suits
 * Sliders
    - Meta Slider
    - Slider Revolution

### **󠀁[Pro](https://mediahygiene.com)󠁿** (coming soon)

 * Custom Fields Plugins – Pro
    - Jet Engine (coming soon)
    - Meta Box (coming soon)
    - CPT UI (coming soon)
 * Remote server backup and restore – Pro (coming soon)
 * Scheduled Scans – Pro (coming soon)
 * Custom Email Notifications – Pro (coming soon)
 * WPML / Weglot / TranslatePress (coming soon)

## Screenshots

 * [[
 * Scan and See
 * [[
 * Identify Unused Media Files
 * [[
 * Remove Media Files

## Installation

**From Your WordPress Dashboard**

 1. Go to Plugins >**Add New**
 2. Search for **Media hygiene**
 3. Click on **Install Now** Button
 4. Click on **Activate Now** After successfully installed in your site.

**From WordPress.org**

 1. Download **[Media hygiene](https://wordpress.org/plugins/media-hygiene/)**
 2. Upload the **media-hygiene** folder to the /wp-content/plugins/ directory
 3. Activate **Media hygiene** plugin from your plugins page.

## FAQ

### How do I know which media files are unused and safe to delete?

The Media Hygiene plugin has a built-in media scanner that looks at the WordPress
database, theme and plugin(s) to identify which media files are no longer in use.
You’ll be presented a list in our dashboard that is safe to delete.

Please backup your site before you delete the files.

### Will this plugin remove any media files that are still being used on my website?

The Media Hygiene plugin will not remove media files that are in use on your website.
This means that if a media file is being used in a post, page, or other database
entry, it will NOT show up in the scanning results and be presented as an option
to be deleted.

If you are certain that some files are being used on your site, you can whitelist
that file and it will longer be considered for deletion.

### How does the plugin identify and remove the unused media files?

The Media Hygiene uses a few scanning modes. The first mode compares the database
entries of specific modules with the files. The second mode scans each folder in
the wp-content/upload directory. It identifies files that are not listed in the 
database and considers them to be unused.

### Will this plugin remove any media files from my backups?

The Media Hygiene plugin does not have the ability to look inside backups and/or
remove any files from your backups.

### Will removing unused media files affect the performance of my website?

While removing unused media files does not directly impact page loading times, removing
unused media files can actually improve the performance of your server and indirectly
improve loading times. Unused media files take up space on your server and can cause
backups to take longer.

### Is there any risk of data loss or corruption when using this plugin?

Like any software, there is a small risk of data loss or corruption when using the
Media Hygiene plugin. However, the developer has taken steps to minimize this risk
by thoroughly testing the plugin and including safety features on various hosting
platforms (e.g. shared, VPS, and dedicated). Please note: websites hosted on shared
platforms have a greater probability of failure due to limited allowable resources
dictated by the hosting provider.

Additionally, it is always recommended to keep a backup of your website before using
any plugin that modifies your directories, just in case something goes wrong.

### How often should I run this plugin to keep my media library clean?

The frequency at which you run the Media Hygiene plugin depends on how frequently
you add media files to your website. There is an email notification feature that
allows informs you of the number of files uploaded but not scanned.

If your website receives a high volume of traffic and media files are frequently
added, it’s recommended to set notifications more frequently, such as every week.

### Does this plugin have any limitations or potential conflicts with other plugins or themes?

The Media Hygiene plugin is designed to work seamlessly with all the most popular
WordPress themes and plugins. However, WordPress is a dynamic ecosystem where there
are many changes occurring. The developers have tried to accommodate every possibility.

To our knowledge, the plugin does not have any known conflicts with other plugins
or themes.

We strongly recommend backing up the website and/or running the plugin on a staging
or development environment.

If you do encounter any issues or conflicts, you can contact the developer for support
and guidance. The developer will work to resolve the issue as soon as possible and
provide a solution.

### Can I preview the media files that will be deleted before they are removed?

Yes, the Media Hygiene plugin allows you to preview the media files that will be
deleted before they are removed. The plugin’s media scanner will provide a list 
of all the unused media files, including details such as the file name, image, location(
URL), and size.

You can review the files and whitelist the file to prevent deletion.

### Is there any customer support available if I have any issues with the plugin?

Yes, there is customer support available for the Media Hygiene plugin. The developer
provides [basic support](https://wordpress.org/support/plugin/media-hygiene/) through
the WordPress repository, where you can find answers to frequently asked questions
and troubleshoot common issues.

Pro users will have access to direct support inside the plugin. The support team
will respond to inquiries as soon as possible, but response times may vary depending
on the nature of the inquiry and the volume of support requests.

### Can I exclude certain media files or folders from being deleted?

Yes, the Media Hygiene plugin allows you to exclude certain media files type from
scan that do not display in unused files by adding files to a whitelist in the scan
results list or It is for Folder Scan separate from Regular Media Scan.

### Can I restore any media files that were accidentally deleted?

The Media Hygiene plugin does not have a built-in feature to restore deleted media
files. You can restore accidentally deleted media files by using a backup of your
website.

### Is there a way to schedule the plugin to run automatically at regular intervals?

No, the Media Hygiene plugin does not allow you to schedule the plugin to run automatically
at regular intervals. We will be including this in the Pro version of the plugin.

### Does this plugin work with multisite installation of WordPress?

This feature is not available yet but coming.

### Can I see a log of all the media files that have been deleted by the plugin?

This feature is not available yet but coming.

### Will this plugin remove any meta data associated with the media files?

No, Media Hygiene will remove the file in its entirety from the WordPress media 
library. It does not remove metadata only.

### Is the plugin compatible with the latest version of WordPress?

The Media Hygiene plugin is designed to be compatible with the latest version of
WordPress. The developer regularly updates the plugin to ensure that it continues
to work seamlessly with the latest version of WordPress.

## Reviews

![](https://secure.gravatar.com/avatar/7059d901961a97e9a25509e63d4b98e52f31164d66d7afd53702bb0efb68a019?
s=60&d=retro&r=g)

### 󠀁[Mistakes unused with unattached](https://wordpress.org/support/topic/mistakes-unused-with-unattached/)󠁿

 [mikoba](https://profiles.wordpress.org/mikoba/) March 20, 2026 1 reply

If you use the same images for several post and/or pages this plugin will still 
say they’re unused simply because they’re not specifically attached to one specific
post/page.If you have a lot of pictures and don’t know by heart where exactly you
used them, this plugin is not of any use.

![](https://secure.gravatar.com/avatar/573a11c738ebf63b77d70fad2f32e1df51bf353371e6172513cddabaf4e1215d?
s=60&d=retro&r=g)

### 󠀁[Works!](https://wordpress.org/support/topic/works-2273/)󠁿

 [patashnik](https://profiles.wordpress.org/patashnik/) February 22, 2026 1 reply

Reviews here seem a unfair. The plugin did an excellent job after I did a scan, 
set the page to display 250 entries, and pressed the red button to delete all listed/
unused attachments. I tested my website thoroughly and required images are all present.

![](https://secure.gravatar.com/avatar/8ceb102baf992aa5e5271f98b209ab3223b7ae4da36bf34b1bea410d0986e0e5?
s=60&d=retro&r=g)

### 󠀁[Great Plugin](https://wordpress.org/support/topic/great-plugin-41185/)󠁿

 [Labrid KY](https://profiles.wordpress.org/labridin/) January 9, 2026 1 reply

This is a great plugin, and the support is also great and quick to respond.I was
having an issue where images uploaded to the gallery field in ACF Pro would disappear,
but this has now been resolved.

![](https://secure.gravatar.com/avatar/eb36f899fd91893d8b744c1ec848bc43aa9615bf66a628ff29fc24cf80731eb9?
s=60&d=retro&r=g)

### 󠀁[Good support is the best argument!](https://wordpress.org/support/topic/good-support-is-the-best-argument/)󠁿

 [jose.geraldo](https://profiles.wordpress.org/josegeraldo/) August 25, 2025 1 reply

This is a great plugin.Worked very well!Great support too, quick response!

![](https://secure.gravatar.com/avatar/7b6f1b8e1e717fd9a121e14797054da4fa785956d6753c1e967a5a37b3b9d8aa?
s=60&d=retro&r=g)

### 󠀁[Great plugin and support](https://wordpress.org/support/topic/great-plugin-and-support-1862/)󠁿

 [supportoma](https://profiles.wordpress.org/supportoma/) July 21, 2025 1 reply

Great plugin and support

![](https://secure.gravatar.com/avatar/6a8a22e37cbf025e6cad894ff93a16deab725215c2d443bf87027b3b523ee4ed?
s=60&d=retro&r=g)

### 󠀁[Media cleaning is hard. This makes it easy!](https://wordpress.org/support/topic/media-cleaning-is-hard-this-makes-it-easy/)󠁿

 [Andrew Palmer](https://profiles.wordpress.org/thisisandrewpalmer/) February 17,
2025 1 reply

I worked on a lot of Photography websites where images are pretty randomly uploaded.
Naming conventions ignored due to rushes and all that comes with running a busy 
business. The end effect? Massive library of images that are unsearchable in the
dashboard, all looking similar and frankly, impossible to archive and delete manually.
This is especially true when a website gets updated or redesigned using the content
from previous iterations. , and with WordPress creating different sizes of all images–
it is quite frankly a nightmare. All solved by this in incredible plugin with just
a few clicks. Fantastic work from the Media Hygiene team. Support is outstanding
too. Recommended!

 [ Read all 31 reviews ](https://wordpress.org/support/plugin/media-hygiene/reviews/)

## Contributors & Developers

“Media Hygiene: Remove or Delete Unused Images and More!” is open source software.
The following people have contributed to this plugin.

Contributors

 *   [ slui ](https://profiles.wordpress.org/slui/)

[Translate “Media Hygiene: Remove or Delete Unused Images and More!” into your language.](https://translate.wordpress.org/projects/wp-plugins/media-hygiene)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/media-hygiene/), check
out the [SVN repository](https://plugins.svn.wordpress.org/media-hygiene/), or subscribe
to the [development log](https://plugins.trac.wordpress.org/log/media-hygiene/) 
by [RSS](https://plugins.trac.wordpress.org/log/media-hygiene/?limit=100&mode=stop_on_copy&format=rss).

## Meta

 *  Version **4.0.2**
 *  Last updated **3 weeks ago**
 *  Active installations **5,000+**
 *  WordPress version ** 5.3 or higher **
 *  Tested up to **6.9.4**
 *  PHP version ** 7.4 or higher **
 *  Language
 * [English (US)](https://wordpress.org/plugins/media-hygiene/)
 * Tags
 * [clean](https://co.wordpress.org/plugins/tags/clean/)[delete](https://co.wordpress.org/plugins/tags/delete/)
   [images](https://co.wordpress.org/plugins/tags/images/)[remove](https://co.wordpress.org/plugins/tags/remove/)
   [unused media](https://co.wordpress.org/plugins/tags/unused-media/)
 *  [Advanced View](https://co.wordpress.org/plugins/media-hygiene/advanced/)

## Ratings

 4.1 out of 5 stars.

 *  [  22 5-star reviews     ](https://wordpress.org/support/plugin/media-hygiene/reviews/?filter=5)
 *  [  1 4-star review     ](https://wordpress.org/support/plugin/media-hygiene/reviews/?filter=4)
 *  [  1 3-star review     ](https://wordpress.org/support/plugin/media-hygiene/reviews/?filter=3)
 *  [  2 2-star reviews     ](https://wordpress.org/support/plugin/media-hygiene/reviews/?filter=2)
 *  [  5 1-star reviews     ](https://wordpress.org/support/plugin/media-hygiene/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/media-hygiene/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/media-hygiene/reviews/)

## Contributors

 *   [ slui ](https://profiles.wordpress.org/slui/)

## Support

Issues resolved in last two months:

     1 out of 2

 [View support forum](https://wordpress.org/support/plugin/media-hygiene/)