DEV Community

Cover image for Clean WordPress Media — But Only What Is Really Orphaned
Christian Ahrweiler
Christian Ahrweiler

Posted on

Clean WordPress Media — But Only What Is Really Orphaned

WordPress media libraries grow quickly.

Old themes, removed plugins, page builder tests, deleted posts, product changes, and bulk edits can all leave files behind. After a while, nobody knows which uploads are still needed.

Deleting media manually is risky.

A file may look unused, but still be referenced in a post, page, custom field, metadata, product content, or another part of the site.

So media cleanup should not mean “delete old files”.

It should mean: find orphaned files, review them, then delete only what is safe.

That is the idea behind atec Media Cleaner by atec Plugins.

It scans uploads and database references to detect media files that are no longer used. Flagged files can be reviewed before deletion, which helps avoid accidental data loss.

This is useful after theme changes, plugin removals, bulk content edits, or long-running sites with messy upload folders.

Top comments (0)