Title: Dustorage &#8211; Media Library Cleanup
Author: ztwpdeveloper
Published: <strong>August 29, 2026</strong>
Last modified: August 29, 2026

---

Search plugins

![](https://ps.w.org/dustorage-media-library-cleanup/assets/banner-772x250.png?rev
=3671745)

![](https://ps.w.org/dustorage-media-library-cleanup/assets/icon-128x128.png?rev
=3671676)

# Dustorage – Media Library Cleanup

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

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

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

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

## Description

Dustorage scans your entire WordPress site to find media files that are no longer
used anywhere — not attached to any post, page, featured image, custom field, or
site setting. Instead of deleting files immediately, Dustorage places them in a **
quarantine period**, giving you time to review and restore anything deleted by mistake
before it’s permanently removed.

**Key Features**

 * Scans the full media library and detects unused files
 * Checks featured images, post content, post meta, custom fields, and site options(
   logo, site icon)
 * Quarantine system: files are held for a configurable number of days before permanent
   deletion
 * Scheduled automatic scans (daily or weekly)
 * Activity log to track what was quarantined or deleted
 * Excluded folders setting to protect specific directories from being scanned

**How It Works**

 1. Dustorage scans your media library and checks each file against multiple usage 
    rules.
 2. Files found unused are placed in quarantine (not deleted immediately).
 3. After the quarantine period ends (default: 7 days), files are permanently deleted.
 4. You can review and restore quarantined files at any time before that.

## Installation

 1. Upload the `dustorage-media-library-cleanup` folder to the `/wp-content/plugins/`
    directory, or install the plugin directly through the WordPress plugins screen.
 2. Activate the plugin through the ‘Plugins’ screen in WordPress.
 3. Go to **Dustorage Cleaner** in your admin menu to run your first scan and configure
    settings.

## FAQ

### Will this delete my files immediately?

No. Files are first placed in a quarantine period (configurable, default 7 days)
before permanent deletion, so you have time to review and restore anything if needed.

### What counts as “used”?

Dustorage checks featured images, content inside posts and pages, post meta (including
custom fields), attachment relationships, and site options such as the custom logo
and site icon.

### Can I exclude certain folders from scanning?

Yes, under Settings you can list folder paths that should never be scanned or touched
by the plugin.

## Reviews

There are no reviews for this plugin.

## Contributors & Developers

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

Contributors

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

[Translate “Dustorage – Media Library Cleanup” into your language.](https://translate.wordpress.org/projects/wp-plugins/dustorage-media-library-cleanup)

### Interested in development?

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

## Changelog

#### 1.0.0

 * Initial release.

## Meta

 *  Version **1.0.0**
 *  Last updated **3 days ago**
 *  Active installations **Fewer than 10**
 *  WordPress version ** 5.8 or higher **
 *  Tested up to **7.1**
 *  PHP version ** 7.4 or higher **
 * Tags
 * [cleanup](https://wordpress.org/plugins/tags/cleanup/)[media library](https://wordpress.org/plugins/tags/media-library/)
   [optimization](https://wordpress.org/plugins/tags/optimization/)[storage](https://wordpress.org/plugins/tags/storage/)
   [unused files](https://wordpress.org/plugins/tags/unused-files/)
 *  [Advanced View](https://wordpress.org/plugins/dustorage-media-library-cleanup/advanced/)

## Ratings

No reviews have been submitted yet.

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

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

## Contributors

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

## Support

Got something to say? Need help?

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