Media Cleanup – Find Unused and Duplicate Images in WordPress

Media

Find unused and duplicate images and delete them safely: everything goes to a quarantine you can restore with one click. Frees disk space.

Get it on WordPress.org

Finds the Media Library images nothing on the site uses and classifies every image file in the uploads folder, so it offers only what the site does not need, each with a small preview. Nothing is deleted straight away: files go to a quarantine first and can be restored.

Read the guide: How to Find and Delete Unused Images in WordPress (Safely) Compare: Clearyvo Media Cleanup vs Media Cleaner

Media cleanup overview: duplicate images, old resized versions, smaller copies and full-size originals, with the space each one frees.
Media cleanup overview: duplicate images, old resized versions, smaller copies and full-size originals, with the space each one frees.

Why Image Clutter Is the Biggest Waste of Hosting Space

Images are usually most of a WordPress site's size. Every upload creates several resized copies, theme changes leave sizes nobody uses any more, the same photo gets uploaded twice, and since WordPress 5.3 large originals are kept next to their 2560 px copy. The result is gigabytes of files that make backups slower and bigger, fill the hosting plan and are never shown to a single visitor.

Deleting by hand is risky, because an image can be used in a post, a page builder layout, a widget, a setting or a CSS file. Media Cleanup checks all of those before it offers anything, shows a small preview of every file, and moves what you choose to a quarantine first. If something turns out to be needed, you restore it with one click; only when the quarantine period ends are the files removed.

Heavy images get their own list too: photos saved as PNG, files above 300 KB and images larger than any screen needs, which are the first things to fix for a faster page.

Who it is for

  • Sites close to their hosting storage limit.
  • Shops and portfolios with thousands of product or gallery images.
  • Anyone whose backups have grown too large to download or store.

Free

  • Unused in Library: Media Library images nothing uses (not in content, featured images, galleries, WooCommerce galleries, widgets, menus, theme settings, options or page-builder data), moved with every size and restored with their Media Library entry
  • "Attached, not shown": images attached to a post that does not show them, listed apart as less certain and never ticked for you
  • Identical copies (same SHA-256) and verified look-alikes at a lower resolution
  • Orphan sizes: resized files WordPress no longer lists, and files in backup folders
  • Full-size originals WordPress keeps next to its 2560 px copy
  • Heavy and oversized images: served images above 300 KB, larger than 2560 px, and PNG photos
  • A small preview of each file in every list, and Export CSV
  • References checked in posts, custom fields, page builder data, settings, widgets, menus, the active theme and CSS files; an image in use is never moved, and uploads of the last 30 days (by default) are never offered as unused
  • Restorable quarantine for 3, 7, 10 or 30 days; every file is re-checked right before it is moved, and a notice with a Restore button shows up if a quarantined file is requested

Checkers Included

Media Cleanup contains PDF Cleanup, Disk Space Analyzer: one plugin, one menu, nothing else to install. Each was a separate plugin before.

Included: PDF Cleanup

Every PDF: where it is used, exact duplicates, files nobody links to, and a cleanup you can undo for 30 days.

  • Where each PDF is used: posts, pages, drafts, reusable blocks, templates, menus, widgets, custom fields and page builder data
  • PDFs with no references, exact duplicates and missing files, with the space one copy would free
  • File names and titles that deserve a look
  • A cleanup list with the safe items ticked; every file is checked again before it is removed, and can be restored for 30 days

Included: Disk Space Analyzer

What uses your hosting disk space: folders, logs, forgotten archives and thumbnails. Read-only.

  • Where the space goes: uploads, plugins, themes, core, other wp-content, leftovers and the database
  • Uploads by type and generated thumbnails, plugins and themes by size
  • A folder tree, the largest files and oversized log files
  • Leftovers: cache, old backup folders and archives, node_modules and .git folders
  • A comparison with the previous scan

Ask Clearyvo: an AI Assistant in the Plugin

Ask about your site in your own words. Ask Clearyvo reads what Media Cleanup and your other Clearyvo plugins found, runs a check when needed and proposes fixes. Nothing changes until you click Allow, and every change can be undone under Recent changes on the Site health page. It is off until you turn it on.

For example:

  • “Which images are not used anywhere?”
  • “How much space would the cleanup free up?”
  • “Move the unused images to the quarantine.”

Free: 30 questions a month for each site, 300 with Clearyvo Pro. No API key and no account. Needs WordPress 6.9 or newer. When you turn it on, your questions and the check results the assistant reads go to the Clearyvo Assistant service, which uses Anthropic’s Claude to answer; no visitor data is sent. More about AI and Clearyvo.

With Media Cleanup Pro

  • Picture families: every copy of a picture grouped together
  • The KEEP suggestion with its reason
  • Everything proposed ticked at once, and a whole list moved in one step (also Unused in Library)
  • WebP and AVIF copies served at the same address, made on your own server
  • JPEG and PNG compression with verified backups: no monthly quota, no external service
  • Automatic optimisation of new uploads and of the library in the background; reports with CSV export

Media Cleanup Pro is a paid add-on for the free Media Cleanup plugin, sold on its own with its own licence. Also included in Clearyvo Pro, with every site checker and the email alerts: with Clearyvo Pro you need neither this add-on nor its key.

See Media Cleanup Pro See Clearyvo Pro

Good to Know

  • References built dynamically by plugin or template code cannot be seen; review the lists before you quarantine.
  • Unused in Library covers images only; PDFs are PDF Cleanup's job.
  • Visual comparison needs PHP GD and a 64-bit PHP. AVIF copies need WordPress 6.5 and AVIF support in GD or Imagick.

Where to Get It

Media Cleanup is the free plugin Clearyvo Media Cleanup. With a second Clearyvo plugin both move under one Clearyvo Hub menu and count in the Site health score. Clearyvo Pro contains it too: with Clearyvo Pro you do not need the separate plugin.

WordPress 6.2, PHP 7.4 (64-bit), GD. English interface.

How to Find Unused and Duplicate Images in WordPress

  1. Install the free Clearyvo Media Cleanup plugin: under Plugins → Add New Plugin once it is on WordPress.org, or with the download button on this page (then Plugins → Add New Plugin → Upload Plugin).
  2. Open Media Cleanup in the WordPress admin (under Clearyvo Hub when you use more than one Clearyvo plugin) and run the check. It works in short steps, so it finishes on shared hosting and large sites too.
  3. Read the report. Nothing on the site changes until you tick an item and confirm.
  • Clearyvo Lite Video Embeds: Faster pages, privacy-friendly videos: YouTube and Vimeo load only on click, with local WebP previews and video SEO schema – no API key.

← All WordPress checkers