Media Hygiene: Remove or Delete Unused Images and More!


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 perfect 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


  • Media Hygiene (Pro) scans the entire website a number of different ways. 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 – notifies when new files have been uploaded and not used

  • 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


  • Gutenberg – Standard

  • Elementor – 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 (available now)

  • Customer Support – directly from the plugin – Pro

  • 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

  • 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 (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)

  • Email Notifications – Pro (coming soon)

  • WPML / Weglot / TranslatePress (coming soon)


  1. Provide unused media list by clicking on the scan button

  2. WP Media Hygiene scans various elements, themes and plugins

  3. Deletes all unused media in a single shot (Pro)

  4. Deletes media by page

  5. Download all media in single shot (Pro)

  6. Download media by page

  7. Provide general summary of all media files in wp-content/upload

  8. Displays media by type based on unused media list

  9. Provide feature to filter unused media by media type and month with year

  10. Provide feature whitelist media

  11. Provide WP list table with row action and bulk action

  12. Provide feature to scan media at the folder level (Pro)

  13. User can exclude folder for folder scan from settings


  • Scan and See
  • Identify Unused Media Files
  • Remove Media Files


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.


  1. Download Media hygiene
  2. Upload the media-hygiene folder to the /wp-content/plugins/ directory
  3. Activate Media hygiene plugin from your plugins page.


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 has two 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).

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. It’s recommended to run the plugin regularly, as this will help keep your media library clean and free of unused files. If you have a lot of media files, it’s recommended to run the plugin at least once a month.

If your website receives a high volume of traffic and media files are frequently added, it’s recommended to run the plugin 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 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.


September 27, 2023 1 reply
Got rid of all my unused media and kept the stuff I was using
August 30, 2023 5 replies
The initial scan marks 657 media files remaining out of a total of 850 media files, which is strictly impossible.It indicates some videos as unused while others located in the same galleries are.Impossible to rely on these results to delete files at the risk of ending up with a site empty of all images.
July 15, 2023
I have been building websites for a long time and use to a lots of images in site and at the end of project there are a lot of images unused in media library and using server space. I tried many plugins to find unused images and way to delete but none of them are at perfection level. But Media Hygiene did really a great job compare to other plugins and helped me to save my server space, delete unwanted image and latest update to scan the entire media library to find the images as unused is way much faster. I will be using this plugin in many site in coming day. Keep it up, good job.


April 25, 2023 1 reply
Recently I installed this plugin on my two sites, the first one built in DIVI and the second one built in AVADA, this plugin executes flawlessly on both sites and comes up with numerous unused files as a result, those files were going to be deleted, after that, my sites work a little bit smoother. Moreover, the plugin provides adequate statistics and examination to get an idea regarding media. we can move questionable files or media in whitelisted media so they can't be deleted, which is a satisfactory feature. Overall, I love the plugin and highly recommend it.
April 20, 2023 1 reply
I recently came across this plugin, and it has been a game-changer for managing media library on my website. It has made cleaning up junk and unused media files incredibly easy and efficient, saving me time and effort. The best thing is, it identifies all the junk and unused media files in no time. Since using this plugin, I have noticed a significant improvement in my website's performance, with faster load times and overall site speed. I highly recommend it to anyone needing an efficient media cleanup solution.
April 18, 2023 1 reply
So I've been able to use this on two websites. One used Elementor and the other was Bricks. The plugin helped me removed almost 200mb of images and I noticed my backups are now a bit faster. The one thing that can be improved is the interface. There is a lot of information to help me understand what is taking up space but it might be too much. I think it is helpful but maybe only show when required or asked.
Read all 7 reviews

Contributors & Developers

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