Skip to content
Sign in
MGCora Unused Media Cleaner – Delete Unused Images Safely icon

MGCora Unused Media Cleaner – Delete Unused Images Safely

Find and delete unused images and media safely.

Not scanned yet WordPress plugin 20 installs

Install in

No install steps yet

Follow the steps on the source page.

Deleting unused media is easy. Deleting it without breaking your site is the hard part, and that is what this plugin is built for.

Most cleanup tools call a file unused if they cannot find it in your post content. That misses media stored by page builders, custom fields, product galleries, taxonomy thumbnails, widgets, and theme settings, which is how cleanup tools end up deleting images that were still on your pages.

MGCora Unused Media Cleaner checks all of those places, and then checks again at the moment you delete, so a file that is still referenced anywhere is not removed. Nothing is deleted without your confirmation, removals are backed up by default, and anything you remove can be restored.

It covers your entire media library, not just images: video, audio, PDFs, and other documents are classified the same way. Works on personal blogs, business sites, WooCommerce stores, and agency portfolios alike.

Features

  • Scan your entire WordPress media library
  • Detect used and unused media of every type (images, video, audio, PDFs, and documents)
  • Identify media used in posts, pages, and custom post types
  • Detect featured images
  • Scan media references stored in post meta (incl. page builders, ACF, WooCommerce galleries, and Yoast/RankMath SEO images)
  • Detect images used as taxonomy term thumbnails or in term descriptions
  • Batch scanning for large media libraries
  • Optional scheduled scans (daily/weekly) via WP-Cron, with an emailed summary
  • Export scan results to CSV
  • One-click cleanup: delete every currently-unused file in one confirm, without manually filtering and selecting them first
  • Fast and lightweight performance
  • Safe deletion workflow with restore-from-trash
  • Clean and easy-to-use interface
  • Built with WordPress coding standards

Why Use MGCora Unused Media Cleaner?

  • Free up server storage
  • Keep your media library organized
  • Reduce unnecessary backups
  • Improve website maintenance
  • Remove media with confidence
  • Avoid deleting files that are still in use

Safe by Design

MGCora Unused Media Cleaner never assumes a file is safe to delete without checking where it is being used. Every scan is designed to minimize false positives by verifying media references before a file is marked as unused. You stay in complete control and can review the results before deleting anything.

Perfect For

  • Bloggers
  • Business websites
  • WooCommerce stores
  • Agencies
  • Developers
  • Content creators
  • Membership websites
  • Portfolio websites

Source Code

The admin interface (build/index.js) is a compiled JavaScript bundle built with @wordpress/scripts. Its human-readable source ships with the plugin in the src/ directory, and assets/css/admin.css is compiled from assets/css/admin.scss. To rebuild both from source, run npm install followed by npm run build (see package.json for the exact build scripts).

Privacy

MGCora Unused Media Cleaner runs entirely on your own server. It does not make any external HTTP requests, does not collect or transmit any data, and does not “phone home.” All scan data is stored in your site’s own database and is removed when you uninstall the plugin.

Roadmap

Future releases will add support for:

  • Additional page builders
  • Storage reports
  • Advanced usage reports

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

clean media librarydelete unused imagesimage cleanermedia cleanerunused images
30 Nov 2026
Version 1.0.8 released. Not scanned yet.

1.0.8 – 2026-11-30

  • Tested with WordPress 7.2.
  • Docs: clearer plugin name, tags and short description on WordPress.org, and every Changelog entry now shows its release date.

1.0.7 – 2026-10-12

  • Fix: emptying the Trash (or permanently deleting one item) could delete a newer, in-use file that had since been uploaded with the same name to the same folder. Only the plugin’s own backup copy is removed now.
  • Fix: restoring a file whose original path is now taken by a newer upload no longer takes over that other file; it is restored beside it under a unique name.
  • Fix: if the backup copy can’t be written (full disk, permissions), the file is no longer deleted.
  • Fix: for large images, the full-size original is now backed up and restored, not just the “-scaled” copy.
  • Fix: more places where media is used are now detected, so these files are no longer wrongly listed as unused or deletable: menu links to a file (e.g. a PDF), page-builder shortcode images (WPBakery, Avada and similar), Elementor images stored only by URL, ACF Options Page fields, the WooCommerce placeholder image and other plugin settings, user avatars, and files shared by several attachments (WPML/Polylang media translations).
  • Fix: Standard and Deep scans no longer mark a file as used just because its ID number appears somewhere in a post’s text, so unused counts are accurate.
  • Fix: a scan no longer freezes on “Scanning…” after switching to another tab and back; it continues where it left off.
  • Fix: cancelling a scan no longer shows “Scan Complete!”, and a failed batch now stops the scan with an error instead of polling forever.
  • Fix: a scheduled scan and a manual scan no longer interfere with each other, and scheduled scans resume after a manual scan was abandoned mid-way.
  • Fix: Safe Mode now also blocks single-file deletes, and the recorded scan duration covers the whole scan.
  • Fix: the Trash screen now lists every trashed file (previously only the first 200).
  • Fix: delete, restore and settings errors are now shown instead of failing silently, and dialogs no longer get stuck on their spinner after a network error.
  • Fix: deleting every row on the last Media List page no longer shows an empty “no media” page.
  • Accessibility: keyboard focus no longer jumps back to an earlier checkbox while selecting rows, and the Settings toggles have accessible names.
  • Removed the misleading “Select all N items” button, which only acted on the current page. Use “Clean Up All Unused Media” on the Dashboard to delete everything unused.
  • Performance: the database table check no longer runs on every admin page load, only after an update.

1.0.6 – 2026-09-29

  • Fixed: restoring a file from the Trash was marked as restored even when the file couldn’t actually be recreated (e.g. no backup and the original file missing), silently dropping it from the Trash list with no way to retry.

1.0.5 – 2026-09-08

  • Change: restoring a file from the Trash (single, selected, or all) now asks for confirmation first, instead of restoring immediately.

1.0.4

  • Not released separately; these changes shipped in 1.0.5.
  • New: “Clean Up All Unused Media” one-click cleanup on the Dashboard. Deletes every currently-unused file in one confirm, with the same safety checks as a manual bulk delete (fresh in-use re-check, backup, Safe Mode still blocks it).

1.0.3 – 2026-08-21

  • Tested with WordPress 7.1.
  • Fix: changing the scheduled scan frequency (for example daily to weekly) did not take effect — the original schedule kept running while Settings showed the new one.
  • Fix: pending scheduled scan batches were not cleared when the plugin was deactivated or uninstalled, leaving stale WP-Cron entries behind.
  • Docs: corrected the Installation steps, which still pointed at the old “MGCora” menu name instead of Media Unused Media.
  • Docs: the FAQ now covers page builder support, CSV export, scheduled scans, and what to do when report emails do not arrive.

1.0.2 – 2026-08-17

  • Fix: media used only in a WooCommerce product image gallery, an ACF Gallery/Relationship-style field, a Yoast SEO social image field, or a RankMath social image field could be wrongly marked as unused. The safety net used both during scanning and at delete time now checks all of these.
  • New: “Post Types to Scan” and “Send Email Report After Scan” settings now actually take effect (previously saved but unused).
  • New: export the current scan results (used or unused) to a CSV file from the Media List screen.
  • New: optional scheduled scans (daily/weekly) via WP-Cron, in addition to running scans manually.
  • The Media submenu item is now labeled “Unused Media” instead of “MGCora”.

1.0.1 – 2026-08-11

  • Fix: images used as taxonomy term thumbnails (e.g. category/destination/product-category images) or embedded in term descriptions were incorrectly flagged as unused. The scanner and the delete-time safety check now also look at term meta and term descriptions across all taxonomies.

1.0.0 – 2026-07-14

  • Initial release.
14 Jul 2026Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)