Title: Ethwebs Media Cleanup
Author: Sanmatiraj
Published: <strong>August 6, 2026</strong>
Last modified: August 6, 2026

---

Search plugins

![](https://s.w.org/plugins/geopattern-icon/ethwebs-media-cleanup.svg)

# Ethwebs Media Cleanup

 By [Sanmatiraj](https://profiles.wordpress.org/sanmathiraj/)

[Download](https://downloads.wordpress.org/plugin/ethwebs-media-cleanup.1.2.9.zip)

 * [Details](https://wordpress.org/plugins/ethwebs-media-cleanup/#description)
 * [Reviews](https://wordpress.org/plugins/ethwebs-media-cleanup/#reviews)
 *  [Installation](https://wordpress.org/plugins/ethwebs-media-cleanup/#installation)
 * [Development](https://wordpress.org/plugins/ethwebs-media-cleanup/#developers)

 [Support](https://wordpress.org/support/plugin/ethwebs-media-cleanup/)

## Description

Ethwebs Media Cleanup keeps your WordPress Media Library tidy automatically. When
you permanently delete a post, the plugin scans for its featured image and embedded
images, verifies they are not used anywhere else on your site, and safely removes
them along with all generated thumbnail sizes.

#### Key Features

 * Automatic deletion of featured images and content images upon post purge.
 * Safeguards shared images (will not delete if used in another post or page).
 * Keyword & Subfolder protection to protect logos, site assets, and advertisements.
 * Built-in Existing Orphaned Media Scanner with AJAX batching to handle 30,000+
   images without server timeouts.
 * Chunked batch deletion system with real-time statistics counter and Cancel Deletion
   support.
 * Pause and Resume controls for long-running media library scans.
 * Client-side UI pagination (25 items per page) to ensure smooth browser rendering
   on massive media libraries.
 * Flexible selection controls: choose “Select Current Page” for page-by-page cleanup
   or “Select All (All Pages)” for bulk purging.
 * Interactive checkboxes for safe manual approval before deletion.
 * Completely lightweight with zero external dependencies.

## Screenshots

[⌊Admin Settings Page - Configure protected keywords and subfolders.⌉⌊Admin Settings
Page - Configure protected keywords and subfolders.⌉[

Admin Settings Page – Configure protected keywords and subfolders.

[⌊Existing Orphaned Media Scanner - Live batch scanning progress and controls.⌉⌊
Existing Orphaned Media Scanner - Live batch scanning progress and controls.⌉[

Existing Orphaned Media Scanner – Live batch scanning progress and controls.

[⌊Pagination & Selection UI - Browse discovered orphans with page-by-page selection.⌉⌊
Pagination & Selection UI - Browse discovered orphans with page-by-page selection
.⌉[

Pagination & Selection UI – Browse discovered orphans with page-by-page selection.

## Installation

 1. Upload the `ethwebs-media-cleanup` folder to the `/wp-content/plugins/` directory.
 2. Activate the plugin through the ‘Plugins’ menu in WordPress.
 3. Go to ‘Settings’ -> ‘Media Cleanup’ to configure protected keywords or run an orphan
    scan.

## FAQ

### Does this delete images when I move a post to Trash?

No. Deletion only occurs when you permanently delete a post by clicking “Delete 
Permanently” or “Empty Trash”.

### Will it delete my site logo, header assets, or sidebar ads?

No. You can define custom protected keywords (e.g., ad-, logo, banner, header) or
protected subfolders under the settings page to prevent specific media from ever
being deleted.

### Should I protect media using image titles or actual filenames?

Always use the actual **image filename** (or file path URL) rather than the attachment
title! Protection rules check the physical file name on your server (e.g., `company-
logo.jpg` or `ad-sidebar.png`). If you add `logo` or `ad-` to your protected keywords
list, any file containing those terms in its filename or URL path will be automatically
skipped and preserved.

### How does the scanner handle sites with tens of thousands of images?

The scanner uses a chunked AJAX batch processor (50 images per request) on the server,
paired with DOM pagination (25 items per view) on the frontend. This prevents both
server timeouts and browser freezing.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

“Ethwebs Media Cleanup” is open source software. The following people have contributed
to this plugin.

Contributors

 *   [ Sanmatiraj ](https://profiles.wordpress.org/sanmathiraj/)

[Translate “Ethwebs Media Cleanup” into your language.](https://translate.wordpress.org/projects/wp-plugins/ethwebs-media-cleanup)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/ethwebs-media-cleanup/),
check out the [SVN repository](https://plugins.svn.wordpress.org/ethwebs-media-cleanup/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/ethwebs-media-cleanup/)
by [RSS](https://plugins.trac.wordpress.org/log/ethwebs-media-cleanup/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 1.2.9

 * Updated all prefixes from emc_ to ethwmc_ (6 characters) to meet WordPress.org
   minimum 4-character prefix requirement.

#### 1.2.8

 * Renamed plugin to Ethwebs Media Cleanup using established brand identifier.
 * Separated inline JavaScript to an enqueued admin.js file.

## Meta

 *  Version **1.2.9**
 *  Last updated **1 day ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.0.3**
 * Tags
 * [auto-delete](https://wordpress.org/plugins/tags/auto-delete/)[media cleanup](https://wordpress.org/plugins/tags/media-cleanup/)
   [media library](https://wordpress.org/plugins/tags/media-library/)[orphan images](https://wordpress.org/plugins/tags/orphan-images/)
 *  [Advanced View](https://wordpress.org/plugins/ethwebs-media-cleanup/advanced/)

## Ratings

No reviews have been submitted yet.

[Your review](https://wordpress.org/support/plugin/ethwebs-media-cleanup/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/ethwebs-media-cleanup/reviews/)

## Contributors

 *   [ Sanmatiraj ](https://profiles.wordpress.org/sanmathiraj/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/ethwebs-media-cleanup/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://wayanad.co.in)