Skip to content
Sign in
Media Cleaner: Delete Unused Images & Clean Your Media Library icon

Media Cleaner: Delete Unused Images & Clean Your Media Library

Find and delete unused images and media files, fix broken entries, with a trash to undo anything.

Not scanned yet WordPress plugin 90k installs

Install in

No install steps yet

Follow the steps on the source page.

Media Cleaner is a powerful plugin that helps you clean up your WordPress media library by deleting unused media entries and files, as well as fixing broken entries. With an internal trash feature, you can preview and confirm changes before permanently deleting anything. Plus, Media Cleaner uses smart analysis to ensure compatibility with specific plugins and themes.

Use it alongside Database Cleaner for the ultimate clean-up experience.

Media Cleaner is like a ninja assassin for your Media Library – it’ll stealthily take out all the unnecessary media and broken entries that are cluttering up the place. Just make sure you have a solid backup plan in place before you let this bad boy loose.

To learn more about compatibility, features, and the Pro version, check out the tutorial on the official website.

AI ASSISTANTS (MCP)

Media Cleaner can be driven by an AI assistant, through the MCP server of AI Engine. Enable MCP in the Media Cleaner settings, and your assistant (Claude, ChatGPT, and the others) is able to run a scan, read the results, explain why a media was reported, ignore the false positives, and clean up. It is not a black box: the tools tell the assistant which builders and plugins are supported on your site, which ones are not, and what the scan cannot see, so it can warn you and check the doubtful cases instead of trusting the results blindly. Deleted files still go to the trash, and a permanent deletion always requires your explicit confirmation.

COMPATIBILITY

This plugin is compatible with all media types, including retina and WebP versions. It has been tested on a wide range of WordPress versions, including the latest version with Gutenberg, as well as on various themes with a large community of users. It also supports WooCommerce. For users with more complex plugins for handling website content, the Pro version may be necessary for optimal compatibility. We are constantly working to increase compatibility with other plugins.

PRO VERSION

Media Cleaner Pro adds extra features to the free version of Media Cleaner:

  • Filesystem Analysis: Scans your physical /uploads directory and matches it against the Media Library.
  • Similar Images: The Duplicates scan also lets you compare and clean images that look alike without being the same file (resized, cropped or re-saved). The free version counts them.
  • Extra support for complex plugins, such as ACF, Metabox, Divi Builder, Fusion Builder (Avada), WPBakery Page Builder, Visual Composer, Elementor, Beaver Builder, Brizy Builder, Oxygen Builder, Slider Revolution, Justified Image Grid, Avia Framework, and many more!
  • Live Site Scan: Analyzes the online version of your website, potentially improving accuracy in some cases.
  • WP-CLI support: Allows you to run the plugin at a higher speed or automatically with direct server access (via SSH).

Written by Joobi from the project's own listing. See the source page

cleanimagesmediamedia libraryunused images
22 Nov 2026
Version 7.3.8 released. Not scanned yet.

7.3.8 (2026/11/22)

  • Add: References: the Origin Type column can now be filtered server-side, across every page of the results.
  • Add: Newsletter: images used in the emails are detected as used, both the plugin’s thumbnails and the Media Library originals they were resized from.
  • Add: WooCommerce: attribute swatch images (on attribute terms and per product) and Composite Products component images are detected as used.
  • Add: BeBuilder: the parser also reads mfn-page-items-seo and the legacy mfn-page-items, not only mfn-page-object.
  • Add: WPBakery: additional background image keys are detected as used.
  • Update: Header: Dashboard and Settings (now labelled) sit together on the right, with Storage and Tutorial first.
  • Update: Scan Details stays compact while the scanner runs, collapses after a successful scan, and can be collapsed or expanded by hand.
  • Update: Repair Mode now only applies to the Filesystem scan, so it no longer shows a Repair column under the other scan methods.
  • Fix: Switching the scan type no longer snaps back to the previous one; settings saves now send only the option that changed.
  • Fix: The wpmc_allow_usage filter alone is now enough to run a scan from the dashboard.
  • 🎵 Discuss with others about Media Cleaner on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

7.3.7 (2026/11/10)

  • Add: Duplicates Scan is now available in the free version, with similarity detection remaining a Pro feature.
  • Update: Reworked the duplicates compare modal.
  • Update: Reworked the select sizes modal and clarified its wording to avoid misunderstandings.
  • Update: Synced the Meow Apps common library.

7.3.6 (2026/11/03)

  • Add: Duplicate scan now finds visually similar images using perceptual hashing (dHash), with a sensitivity setting.
  • Add: Comparison tool to view duplicates side by side before deleting them.
  • Add: Support for BeBuilder.
  • Update: Error modals now include a link to the related documentation.

7.3.5 (2026/10/30)

  • Add: Storage page showing where the site’s space goes and what can be cleaned.
  • Add: Parser for Eventin.
  • Add: The free version now shows how many files in the uploads folder are not in the Media Library.
  • Add: Warning when a scan lists a large share of the Media Library, and one extra confirmation before Delete All.
  • Add: Option to list the original files kept next to scaled images.
  • Update: Optimize Thumbnails now keeps the sizes your theme or plugins still register.
  • Update: The header shows the installed version, and how to update or renew when a newer one is available.
  • Update: Settings is now the wrench at the end of the header.
  • Update: Meow Apps Media Cleaner now opens the Dashboard, and the Storage page has a proper title.
  • Update: Tidied the advanced tools, Reset Options now asks for confirmation, and results coming from another scan method are clearer.
  • Fix: Cleaning a media entry no longer moves or deletes files that another attachment still uses.
  • Fix: Invalid URLs and unclean text no longer block the whole scan.

7.3.4 (2026/10/24)

  • Add: Divi 4 parser now detects testimonial portrait images.
  • Update: The scan’s Finished dialog names the page builders only Pro can read, and clicking a locked scan method explains what Pro would do.
  • Update: The Ignore button is now disabled instead of hidden when cleanup is not allowed.
  • Update: Pro badges now link to the Media Cleaner page, and a Pro install that is not activated yet is shown as Pro.
  • Update: Clearer License tab that explains Pro to free users and invites Pro buyers to activate.
  • Fix: Old scans are now fully cleaned up, so the database tables no longer grow with every scan.

7.3.3 (2026/10/20)

  • Fix: Images set in the Customizer are now detected in every theme’s settings, so they are no longer flagged as unused.
  • Fix: Scans now run on SQLite installs such as WordPress Playground and Studio, and recovering a file no longer relies on MySQL-only SQL.
  • Fix: Closing a dropdown no longer drops the dashboard’s colors.

7.3.2 (2026/10/19)

  • Update: Scans now run many times faster by processing several batches per request.
  • Update: Reworded the buffer settings and the overload hint, since a request now covers several batches instead of one.
  • Update: The dashboard is calmer for first-time users.
  • Update: The free version now names the page builders it cannot read and points to Pro.
  • Update: The Free badge and logo in the plugin header now link to the Pro page.
  • Update: Expired licenses now get a grace period with retries, license keys are normalized, and an Activate License notice was added.
  • Update: Pro links inside Media Cleaner now indicate where they were clicked from.
  • Fix: Start Over now works after an interrupted scan.
  • Fix: Scans are no longer interrupted when something triggers a redirect.
  • Fix: Results from a scan made with the free version no longer unlock deletions after switching to Pro.

7.3.1 (2026/10/10)

  • Add: A Scan button directly in the notice shown when deleting requires a new scan.
  • Add: Hook tracing and reporting to analyze performance during long cleanup requests.
  • Update: Scan error messages are clearer and suggest using smaller buffers and a delay when the server times out.
  • Fix: Trash deletion now uses your file buffer setting instead of a placeholder value.
  • Fix: Timeouts during a scan are now handled by the scanner itself instead of surfacing as raw errors.

7.3.0 (2026/10/03)

  • Update: Debug logs are now enabled by default; existing settings are kept.
  • Update: Scans now skip the CSS posts generated by Jetpack Boost.
  • Update: The time allowed per item now comes from PHP’s own execution limit instead of a fixed 24 second budget.
  • Fix: Cleanup and trash recovery no longer fail when the host alters file details, such as size or modification time, on its own.

7.2.9 (2026/09/26)

  • Add: Live Logs panel on the scan dashboard showing scan, trash and delete activity in real time.
  • Add: Detailed timing and error tracking for the deletion process.
  • Add: Log history linked to the support ID in the Support Bundles section.
  • Update: Multilingual references are now resolved in their own scan step instead of during the references extraction.
  • Update: Failed items during deletion are now grouped in a single summary instead of opening an error modal right away.
  • Update: The license screen now explains the exact reason a license check failed.
  • Fix: A server that cannot reach the license server no longer freezes the admin for minutes.
  • Fix: Temporary errors while processing a media file no longer cause an endless retry loop.
  • Fix: Attachment lookup for multilingual references is faster on large sites.
  • Fix: SiteOrigin Page Builder parser no longer registers the same reference several times.
  • Fix: Meta Box parser now collects term meta in the scan once step using the paged parser.

7.2.8 (2026/09/14)

  • Fix: Resolved a PHP warning that could appear during scans.
  • 🎵 Discuss with others about Media Cleaner on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

7.2.7 (2026/09/07)

  • Add: “Inspect” button for duplicates to compare and resolve issues from a unified view.
  • Add: Unlock Scan maintenance tool.
  • Add: Soliloquy parser.
  • Fix: Duplicates scan skips unreadable files instead of stopping, and duplicates are no longer protected from checks.
  • Fix: Loading bar now completes on each batch.
  • Fix: Force Clean Trash handles the trash inventory and checks both physical and database leftovers.
  • Update: SiteOrigin parser supports the gallery widget and extracts HTML content.
  • Update: Divi parser handles base64-encoded JSON references.

7.2.6 (2026/08/17)

  • Add: Support for SiteOrigin Page Builder.
  • Add: Auto Buffer helper that sets the advanced buffer value from server tests, with warnings for slow items.
  • Add: Plugin board and AI site analysis to the dashboard.
  • Fix: Query handling and logging for unbounded database queries.
  • Fix: MCP tools were initialised before the plugin load check.
  • Update: Minimum PHP version is now 8.1.

7.2.5 (2026/07/25)

  • Fix: Document size validation no longer stops scans, and the size limit is now configurable.
  • Add: Force Clean Trash option in the settings for trash items that cannot be removed normally.
  • Add: Dashboard warning when the manifest contains unsafe entries.
  • Update: Error messages for failed items are now grouped in scan results.
  • Update: Files are marked as unsafe instead of aborting the scan when fingerprinting fails.

7.2.4 (2026/07/18)

  • Fix: Stopped a single oversized media reference from aborting the whole scan.
  • Update: Moved the unsupported plugins warning into the free version box as a compact note next to the Pro button.

7.2.3 (2026/07/16)

  • Fix: Trash recovery no longer requires a scan — recovered files are always available regardless of scan state.
  • Add: Dashboard now shows a cleanup status message explaining when a fresh scan is needed.
  • Update: Trash buttons are hidden while a scan is staged, preventing actions the server would refuse.
  • Fix: Background images set in the Site Editor are now detected during scans.
  • Fix: Hotfix — Results created before the scan-runs system are now properly adopted on update and reactivation, restoring cleanup and trash previews.
  • Fix: MCP trashing no longer deletes files when the trash setting is skipped, and no longer reports unsaved progress.
  • Update: Trash previews are now restricted to raster images.
  • Update: Deleting results from an older scanner version now requires a fresh scan first.

7.2.2 (2026/07/15)

  • Add: MCP tools so an AI assistant can scan, review and clean up through AI Engine
  • Add: Parser for background images stored in core block attributes
  • Update: Reworked the references view into four meaningful columns with media titles, missing media markers, and fixed post titles and thumbnails
  • Fix: References search returning no results because of an ambiguous column in the query
  • Update: Replaced the browser broken image icon with a placeholder when a thumbnail cannot be loaded

7.2.1 (2026/07/13)

  • Fix: Hotfix — Restored shortcode analysis and lenient upload URL matching to fix false positives introduced in 7.2.0.
  • 🎵 Discuss with others about Media Cleaner on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

7.2.0 (2026/07/12)

  • Add: Resumable, checkpointed scan runs with staged results that publish only after complete analysis.
  • Add: Private quarantine storage, file identity validation, and idempotent cleanup operations.
  • Fix: Graceful handling of timeouts, transient server failures, stalled cursors, and parser compatibility queries.
  • Fix: Durable keyset pagination for large compatibility-parser datasets.

7.1.1 (2026/05/30)

  • Update: Full Cornerstone Parser coverage with URL references and improved data parsing.
  • Update: Refactored URL detection to work with relative URLs.
  • Add: Confirmation prompt before deleting the Cleaner database.
  • Fix: Sped up file deletion by replacing directory scanning with a lazy emptiness check.
  • Update: Made it clearer when viewing settings versus the dashboard.

7.1.0 (2026/05/17)

  • Add: In-results banner and tooltip clarifying that files marked as “not found in content” may still be used dynamically by builders, templates, or external sites.
  • Fix: Memory overflow on large sites (1M+ media) by replacing in-memory array counting with SQL count queries.
  • Fix: Added check for existing table before deleting attachment-related data.

7.0.9 (2026/05/09)

  • Fix: Meow Gallery parser now correctly applies WPLR filters on galleries and parses JSON HTML format.
  • Add: Support for Meow Gallery’s collections with WPLR integration.
  • Add: Support for WP Download Manager plugin.
  • Add: Filter “wpmc_affect_html_from_builder” for page builders that store their own content, allowing other parsers to still work alongside them.
  • Update: Search now works across all reference fields.
  • 🎵 Discuss with others about Media Cleaner on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

7.0.8 (2026/04/25)

  • Update: Renamed internal origin references for clarity.
  • Update: Path descriptions now use ‘thumbnails’ instead of ‘files’ for clarity.
  • Fix: Image URLs in the metabox are now only added when actually present.
  • Update: Improved UI/UX for better user experience. We hope you’ll love it! 🥰

7.0.7 (2026/04/15)

  • Add: New “References Buffer” option to split and flush reference processing to reduce memory errors on large datasets.
  • Fix: Improved base64 handling to better cope with malformed edge cases and prevent related issues.
  • Add: More detailed timeout debugging for reference extraction to make diagnosing performance issues easier.
  • Fix: Removed base64 content from HTML before URL parsing to prevent regex timeouts on complex pages.
  • Update: Replaced cached references with a unique hash-based system and limited media ID lookups to multilingual URLs for faster and cleaner reference handling.

7.0.6 (2026/03/27)

  • Fix: Hotfix to resolve a security issue that could allow SSRF attacks through embedded iframes.

7.0.5 (2026/03/09)

  • Fix: Ensure plugin checks run after all required options are initialized.
  • Add: Introduce LayerSlider compatibility and update Enfold theme integration.
  • Update: Improve origin handling so the plugin can work with sources that don’t use numeric IDs.
  • Add: Include more direct documentation links in error popups.
  • Add: Provide ACF-specific filters for URLs and IDs to give developers more precise control over field handling.

7.0.4 (2026/02/25)

  • Fix: Improve how issue names are displayed.
  • Add: Allow selecting specific thumbnail sizes (to avoid the unnecessary ones).
  • Fix: Ensure media scans always use ID-based URL references (improving compatibility with WPML).
  • Update: Improve compatibility with multisite and network site.
  • Update: Apply better default settings on fresh installs.
  • 🎵 Discuss with others about Media Cleaner on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

7.0.3 (2026/01/27)

  • Add: Added full support for newer versions of the Oxygen builder.
  • Fix: Updated the Divi integration so URLs with direct UR patterns are no longer incorrectly marked as safe.
  • Update: Extended Divi 5 support by recognizing mp4 and webm keys for background videos and the new “linkUrl” key in Divi blocks.
  • Update: Improved Elementor compatibility by having the parser also check page settings for relevant data.
  • Update: Made excluded directories easier to customize by turning them into a configurable setting that developers can filter.

7.0.2 (2026/01/05)

  • Fix: Prevent warnings and errors caused by empty HTML output and broken shortcodes.
  • Add: Support FooGallery album shortcodes for better gallery integration.
  • Add: Display icons for reference tags including SAFE, CACHE, OG_THUMB, and GEN_THUMB.
  • Update: Improve FooGallery handling by supporting non-HTML shortcode output and flagging cached media items.
  • Update: Remove the transient cache for post types and include the post ID in reference data.
  • Fix: Correct the JetEngine parser to ensure dynamic content is detected and rendered properly.

7.0.1 (2025/12/16)

  • Add: Introduced scan resume support for both Thumbnails and Duplicates scans.
  • Fix: Prevented an error in the Metabox parser caused by treating text values like lists.
  • Fix: Ensured the “Repair x Entries” notice only appears while repair mode is active.
  • Add: Added a new “Optimize Thumbnails” feature.
  • Add: Added support for Toolset.

7.0.0 (2025/12/03)

  • Fix: Prevent the plugin from loading on pages where it is not needed.
  • Add: CSV export option for scan results to make it easier to review.
  • Add: Support for pagination in FooGalleries so all gallery items are properly scanned.
  • Add: Recursive scanning for ACF Blocks to ensure nested blocks are fully detected.
  • Add: FooGallery parser support for block shortcodes.
  • 🎵 Discuss with others about Media Cleaner on the Discord.
  • 🌴 Keep us motivated with a little review here. Thank you!
  • 🥰 If you want to help us, check our Patreon. Thank you!

6.9.8 (2025/11/13)

  • Update: Enhanced UI and UX.
  • Fix: Fixed the Smart Slider 3 parser to load correctly and function as expected.
  • Add: Parsed “href
15 May 2016Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)