Skip to content
Sign in
Cleanup Orphan Images icon

Cleanup Orphan Images

Orphan files cleaner with protected system files.

Not scanned yet WordPress plugin 100 installs

Install in

No install steps yet

Follow the steps on the source page.

Finds and deletes redundant files from the uploads folders that are not visible in WordPress Media Library.

These orphan files may have been left behind from:

  • Failed or interrupted uploads
  • Plugin operations or migrations
  • FTP/SFTP uploads not registered in WordPress
  • Database restores or imports

Features

  • Scans all files in the uploads directory, including hidden files and files without an extension
  • Shows .htaccess and index.php as protected files that cannot be selected or deleted
  • Groups XML and HTML files separately and warns when selected that deletion may disable some plugins
  • Safe manual selection before deletion
  • Warns when orphan count exceeds server’s max_input_vars limit (typically 1000)
  • Optimized O(1) performance with hash-based detection

Note

This plugin does NOT manage “unattached” images in the Media Library. WordPress already provides built-in filtering for unattached media.

Written by Joobi from the project's own listing. See the source page

cleanupfilesimagesmediaorphan
28 Nov 2026
Version 1.9.0 released. Not scanned yet.

1.9.0

  • Added: Scan all files regardless of extension, including hidden and extensionless files.
  • Added: Protected .htaccess and index.php files are shown but cannot be selected or deleted.
  • Added: Separate XML and HTML group with a warning when those files are selected.
  • Updated: Selectable files are listed before protected files to keep deletion batches usable.

1.8.5

  • Added: XML and HTML file support in the orphan scanner.
  • Fixed: Registered source images and animated-image video/poster companions are no longer reported as orphans.
  • Updated: Tested up to WordPress 7.2 after compatibility testing with WordPress 7.2 RC3.
  • Updated: Plugin header now declares PHP 7.4, matching the readme.

1.8.4

  • Removed translation function calls; the interface is English only.

1.8.3

  • Fixed: Media files could be incorrectly reported and deleted as orphans on Windows environments due to a path slash mismatch.
  • Fixed: Duplicate copies of registered files outside their registered folder are now correctly detected.
  • Added: Scan results are now capped at 1000 files per batch to prevent the admin page from hanging on very large uploads folders.
  • Added: Scanned folder path is now displayed on the scan page.
  • Cleanup unused js and handlers.

1.8.2

  • Updated: Tested up to WordPress 7.1.

1.8.1

  • Added FAQ entry explaining interaction with server-side WebP rewriting plugins

1.8.0

  • Simplified plugin to focus on orphan files only
  • Removed unattached images feature (use WordPress built-in Media Library filter instead)
  • Expanded file format support: images, documents, audio, video, archives
  • Cleaner, more focused user interface

1.7.2

  • Minor GUI fix

1.7.1

  • Removed broken automated batch deletion button

1.7.0

  • Full PHPCS/WPCS coding standards compliance
  • Performance optimization for orphan file scanning
  • Security improvements with capability checks

1.6.0

  • WordPress.org compliance improvements
  • Enhanced security and caching

1.5.0

  • Added orphan files detection
  • Batch processing with progress tracking

1.0.0

  • Initial release
29 Dec 2025Listed on Joobi from WordPress.org.

Follow this listing's changes (Atom feed)