
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
Screenshots

Dashboard overview with media usage stats, reclaimable storage, and one-click cleanup.

Scanner with selectable scan depth (Quick, Standard, Deep) and live progress.

Media List showing used/unused status with filtering and bulk actions.

Media detail view listing exactly where a file is used.

Trash with restore and permanent-delete actions.

Settings: Safe Mode, scan depth, post types, backup, email report, and scheduled scan options.