Dev InTouchDesign LogoDev InTouchDesign

InTouch Media Cleaner

Find images nothing uses anymore, and delete them without ever breaking a page: every deletion has a one-click restore behind it.

InTouch Media Cleaner looks for files in the WordPress Media Library that no page, post, setting or widget points to any more, and lets you remove them to free up disk space. Its rule is simple: when in doubt, keep the file. Most media cleaners list what they understand and stay silent about the rest, such as a page builder they do not recognise, an offloaded file or a custom field, and the risk of a broken page lands on you. This plugin does the opposite: when it cannot see the whole site, it tells you what it missed, in plain words, and keeps every score below the bulk-selection threshold.

Read the tutorial

Your first two scans, what the confidence scores and the 70% cap mean, how to read the "Why?" panel, and how to restore a file from Trash.

  1. 1

    Activate

    Upload the plugin and activate it from the Plugins screen.

  2. 2

    Scan

    Open Media Cleaner in the admin menu and run a scan from the Scan tab.

  3. 3

    Review & delete

    Run a second scan once the first finishes: the first scan is analysis only. Check the "Why?" detail on a few rows in the Results tab, then select and delete.

  4. 4

    Restore if needed

    Deleted files sit in the plugin's trash with a cooling period. Restore any of them from the Trash tab, at their original attachment ID.

  • WordPress 6.2 or higher (tested up to 7.1)
  • PHP 7.4 or higher

Supported page builders in this version: WooCommerce and Elementor, alongside full core-WordPress coverage.

  • A confidence score on every file, held at 70% at most while any part of the site is not covered
  • Nothing can be deleted after the first scan: a second scan has to agree with it
  • Files uploaded in the last 14 days are never offered for deletion, whatever their score
  • Results older than 7 days have to be scanned again before you act on them
  • Deleted files wait in a trash with a cooling period, and come back at their original attachment ID
  • A coverage panel shows what was checked, what was degraded, and what no scan can see

Post & Page Content

  • Block editor image, gallery, cover, media-text, video and file blocks
  • The [gallery], [playlist] and [caption] shortcodes
  • Images written straight into HTML: wp-image classes, src, href, srcset and CSS url()
  • Drafts, revisions and trashed posts as well as published content

Structural Links & Theme

  • Featured images, and the post an attachment belongs to
  • Logo, site icon, header and background images of every installed theme, active or not
  • Additional CSS, global styles and block-theme backgrounds

Widgets, Menus & Comments

  • Image, gallery, custom HTML and block widgets
  • Menu items that link directly to an attachment or to a file in uploads
  • Links to uploaded files written inside comments

WooCommerce

  • Product and variation images, and product galleries
  • Images for product categories and brands
  • The placeholder image, the e-mail header image and downloadable files

Elementor

  • Images, galleries and backgrounds stored in Elementor data
  • Page backgrounds and the global kit's backgrounds
  • Popups, Theme Builder templates and the media dynamic tag

The Safety Sweep

  • If an attachment ID or URL turns up anywhere in options, or in post, term or user meta, the file counts as used
  • Noisy on purpose: the sweep can only protect a file, never mark one for deletion

Can it delete an image that is still being used?

That is the exact failure it is designed to avoid. Level-D protection (the noisy safety sweep) is on by default, the first scan cannot delete anything, freshly uploaded media is excluded, and whenever coverage of the site is incomplete every score is capped below the selection threshold. If it is not sure, it protects the image and tells you why.

Does uninstalling the plugin delete my media or my scan history?

No. "Purge on uninstall" is off by default: removing the plugin leaves the Media Library and the plugin's own tables untouched. Full cleanup is opt-in from the settings before uninstalling.

Does the plugin send my data anywhere?

No. The only message it sends is the purge audit e-mail to the site's own admin address, only after files are permanently deleted. No analytics, no external requests.

Which page builders does it support?

WooCommerce and Elementor in this version, in addition to full core-WordPress coverage. Each builder adapter declares the versions it was tested against; outside that range the adapter doesn't run and the coverage panel marks the scan as degraded rather than guessing. More builders are planned for a future paid version.

Why does the Results tab say "70% confidence" or "coverage: degraded"?

Because something about the site is outside what the scan could fully cover: a builder with no integration, an untested builder version, a plugin deactivated within the last 30 days, or a failed scanner. The 70% cap keeps items out of bulk selection until coverage is complete. The coverage panel names the specific reason.

Why can't I delete anything after the first scan?

The first scan is analysis only, by design. A second scan unlocks selection and deletion once it confirms the results.

An image I know is unused is protected. Why?

The safety sweep found its ID or URL somewhere in the options or metadata table, often a stale setting or a plugin's own record. Deliberately conservative: it protects rather than risking a false positive. Items can still be protected or unprotected by hand.

PriceFreeGPL-licensed, no license key.

Free and open source. Install it straight from your WordPress dashboard, or download it from WordPress.org.

Get it on WordPress.org