CoffeeWP Media Cleanup – Scan and Remove Unused Media and Orphan Thumbnails
CoffeeWP Media Cleanup helps you reclaim disk space and tidy up your WordPress media library. A guided three-step wizard walks you through the work: Pre-scan settings : review detected page-builder compatibility, pick which thumbnail sizes WordPress should generate, and choose a batch size that fits
CoffeeWP Media Cleanup helps you reclaim disk space and tidy up your WordPress media library.
A guided three-step wizard walks you through the work:
- 01Pre-scan settings : review detected page-builder compatibility, pick which thumbnail sizes WordPress should generate, and choose a batch size that fits your server.
- 02Scan : walk your uploads tree and detect which files are unused, broken, or missing.
- 03Results : see what is unused, what is broken, what is missing, which thumbnails are stale, and run targeted clean actions on selected rows or across the whole result set.
Clean actions:
- Delete unused media (file moves to trash; attachment record soft-deleted).
- Delete missing files (clears DB rows whose backing file is gone).
- Delete broken-link records (clears attachment posts whose files never existed).
- Delete orphan thumbnails (removes derivative files with no attachment parent).
- Regenerate missing thumbnails (re-runs WordPress’s image-size pipeline).
- Add orphan files to the Media Library (creates attachment records for unattached files).
Trash + restore:
A dedicated Trash view lists every file the plugin has moved out. Restore any item with one click, permanently delete individual rows, or empty the trash. Optional auto-delete after N days. Trashed files live under wp-content/uploads/cwpm/trash/ and are protected from being overwritten by new uploads (filename collisions are detected and avoided).
Activity log:
Every clean action writes to a daily log file at wp-content/uploads/cwpm/logs/ . The Logs view shows each file with size and download link. Optional auto-delete after 30 days.
Designed to be safe:
- Soft-delete by default. No file is ever permanently removed except via the explicit “Empty trash” or “Permanent delete” controls.
- Per-row checkboxes and a typed-confirmation disclaimer modal gate the destructive actions.