🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Media Library Cleaner icon
Actively maintained Tested with WP 7.1 #1 in clean uploads

Media Library Cleaner

Find which media files are in use and which are safe to delete, so you can clean up your uploads folder with confidence.

Active installs50+10+ tier
Downloads · 30d323▲ +33.5% vs prev. 30d
Rating5/52 reviews
Health score71/100Good
All-time downloads2.9KSince Jul 2024
Support resolved—No recent threads
RequiresWP 6.0PHP 8.0+
Downloads · 7d80▲ +29% week over week
Our verdict

Solid choice

Media Library Cleaner is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites, is rated 5/5 and was last updated 1 month ago, and scores 71/100 on our health check.

  • Tested with the latest WordPress (7.1)
  • Small user base (50+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

183755Sep 5Oct 19Dec 3
Yesterday9
Daily average (1y)4
Peak day74Nov 2, 2026
Last 12 months1.5K

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Media Library Cleaner stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
clean uploads #64 9,527 Best clean uploads plugins →
delete unused media #18 811 Best delete unused media plugins →
media cleaner #18 839 Best media cleaner plugins →
media library #72 7,031 Best media library plugins →
unused images #29 2,099 Best unused images plugins →

Version adoption

Share of active sites per release.

  • 2.0100.0%

Rating breakdown

★★★★★★★★★★ 5 from 2 reviews

  • 5★100.0%
  • 4★0.00%
  • 3★0.00%
  • 2★0.00%
  • 1★0.00%

About Media Library Cleaner

From the official readme · v2.0.1

Description

Media Library Cleaner scans your WordPress media library and identifies which files are actually in use and which are safe to delete, so you can clean up your uploads folder with confidence.

Version 2.0 is a ground-up rebuild from the original release, with a new scanning architecture and admin interface.

How The Scanning Engine Works

Unlike lightweight scanners that only check the post_content column, Media Library Cleaner performs a deep inspection across your entire WordPress architecture. When a scan is initiated, every attachment in the media library is checked against:

  • Core Content: Standard post content and Gutenberg block editor attributes.
  • Post Meta: All custom fields and metadata, including complex data structures generated by Layout & Design plugins like Elementor and Beaver Builder.
  • Theme Settings: Theme mods, site icons, custom logos, and custom header images.
  • Taxonomies & Users: Term meta and user meta fields.
  • Widgets: Media widgets deployed across sidebars and footers.
  • Scan Options: Administrators can explicitly choose whether to include or ignore draft posts and post revisions during the reference check.

Batched Processing Architecture

To handle enterprise-scale WordPress installations, the scanning engine uses batched processing. Instead of loading the entire database into memory, the plugin queries and processes content in strict batches. This architecture prevents PHP memory exhaustion and server timeout errors – and has been thoroughly stress-tested on environments containing over 60,000 posts.

A live four-phase progress bar tracks the execution in real-time, displaying counts for:

  1. Initialisation
  2. Post scanning
  3. Metadata scanning
  4. Results loading

Results Dashboard

Once the scan completes, results are loaded into a split-view dashboard separating Unused Files from Used Files.

  • Used Files View: Explicitly lists the specific posts, pages, or settings where an attachment is currently referenced, giving you absolute certainty about why a file was flagged as active.
  • Progressive Card Grid: Files are displayed in a visual grid showing the image thumbnail (or a specific file type icon for non-images), filename, file type, file size, exact pixel dimensions, and upload date.
  • Sticky Selection Bar: A persistent control bar tracks the total number of selected files and calculates their combined file size in real-time, allowing you to see exactly how much server space you are about to reclaim. Includes bulk select/deselect controls.
  • One-Click Selection: Clicking anywhere on a progressive card toggles a highly visible selected state (blue border and checkmark overlay).

Deletion Mechanics & Safety Protocols

Media Library Cleaner treats data destruction with the utmost caution. A prominent backup warning is displayed before any scan or deletion sequence can be initiated.

  • WordPress Capability Checks: Before attempting to remove any file, the plugin performs a strict, per-item capability check. Deletion requests are automatically refused for any file the current user does not have explicit permission to delete.
  • Confirmation & Permanence: A WordPress-native confirmation modal intercepts the deletion trigger, explicitly warning the user that deletions are permanent (unless the MEDIA_TRASH constant is enabled in wp-config.php).
  • Batched Deletion: Much like the scanning process, file deletion is handled in batches with a live progress indicator.
  • Post-Deletion Reporting: A completion modal provides a definitive summary, explicitly detailing how many files were successfully deleted and how many failed.
  • Per-File Reporting: Every individual file is reported as a success or a failure, with specific technical reasons provided for any failed deletions.

Persistent Logging & Environment Data

  • Database Session Logs: Every deletion run is permanently recorded in the database. This log records the timestamp, the user who initiated the action, the total file count, and the explicit success/failure results for every individual file processed during that run.
  • Environment Info Tab: A dedicated diagnostic tab provides administrators with critical context before running a scan. It displays the total media count, the physical size of the uploads folder, a list of all registered image sizes, the precise uploads directory path, directory writability status, media trash status, and current PHP/WordPress environment details.

Installation

  1. Upload the unused-media-scanner folder to the /wp-content/plugins/ directory, or install the plugin through the WordPress Plugins screen.
  2. Activate the plugin through the ‘Plugins’ menu in WordPress.
  3. Navigate to Tools > Media Library Cleaner in the WordPress admin menu.
  4. Review the Environment Info tab and perform a full site backup.
  5. Configure your Draft and Revision scan options, then click Run Scan.

Changelog

2.0.1

  • Tested up to WordPress 7.1
  • Improved readme formatting

2.0.0

  • Complete UI rebuild using WordPress admin design patterns
  • Batched scanning architecture — eliminates memory/timeout errors on large sites
  • Persistent, searchable deletion log stored in the database
  • Per-file permission checks with detailed success/failure reporting
  • New Environment Info diagnostics tab

1.0.11

  • Tested on WordPress 7

1.0.10

  • Improved scanner

1.0.9

  • Sanitize array fix

1.0.8

  • Updated to support WordPress 6.9

Full changelog on WordPress.org →

Screenshots

Media Library Cleaner screenshot
Media Library Cleaner screenshot

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Media Library Cleaner alternatives

All clean uploads plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
2 Habibur Unused Image Cleaner Habibur Unused Image Cleaner Find, preview, and safely delete unused images from your WordPress Media Library with a… by Habibur Rahman <10 ★★★★★★★★★★ No reviews 6 months ago 49

FAQ

Media Library Cleaner: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Media Library Cleaner free?

Yes. Media Library Cleaner is free to download and use from the official WordPress.org plugin directory.

Is Media Library Cleaner safe to use in 2026?

Media Library Cleaner is a solid plugin choice in 2026, with a few things worth checking first. It runs on 50+ sites, is rated 5/5 and was last updated 1 month ago, and scores 71/100 on our health check.

How many websites use Media Library Cleaner?

Media Library Cleaner is active on 50+ WordPress websites and has been downloaded 2,890 times since it launched in July 2024. It was downloaded 323 times in the last 30 days.

Does Media Library Cleaner work with WordPress 7.1?

Yes. The developer has tested Media Library Cleaner up to WordPress 7.1.5, the latest release. It requires WordPress 6.0 or newer.

What PHP version does Media Library Cleaner need?

Media Library Cleaner requires PHP 8.0 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Media Library Cleaner last updated?

The latest version, 2.0.1, was released on November 2, 2026 (1 month ago).

Who makes Media Library Cleaner?

Media Library Cleaner is developed and maintained by 1WL Agency.

What are the best alternatives to Media Library Cleaner?

The most popular alternatives to Media Library Cleaner are Habibur Unused Image Cleaner (<10 installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open