Sparrow Plugins

Dustpan

Find images and files in your media library that nothing uses, see how much space they take, and move them to the trash.

Coming to WordPress.org soon

Old media libraries fill up with images nobody uses: test uploads, replaced photos, files from an old theme. Dustpan finds them.

The scan runs in short batches. It looks in content (blocks, galleries, shortcodes), featured images, custom fields, the site icon and logo, widgets, menus, options, WooCommerce galleries, category images and descriptions, and the data of common page builders such as Elementor or Divi. When in doubt a file counts as used.

Ignore what you want to keep, or move files to the trash; the Trash tab restores them. Dustpan never deletes for good, but WordPress empties its trash after 30 days.

Please note: a scan can't see files used only in theme or plugin code, CSS files, emails or other websites. Back up before you clean up and look at the list first.

What the free version does

Pro

The free version is complete on its own. Pro adds:

Privacy

No outside requests of its own and nothing stored about visitors.

Questions

Can it delete a file I need?

Not for good: files go to the trash after a second check. A scan can miss a file used only in theme code or CSS, so keep a backup.

How long do trashed files stay?

WordPress deletes trashed items after 30 days (EMPTY_TRASH_DAYS). Restore them from the Trash tab before then.

Is a file attached to a post used?

By default yes, even if the post doesn't show it. You can untick that in Settings.

What happens to trashed files if I delete Dustpan?

Deleting the plugin first puts the files it moved to the trash back in the media library, so none are lost.