Media Storage

# WordPress Unused Images and Media Storage
Source: https://wpmultitool.com/unused-images/

Every image upload can turn into a small family of files: thumbnails, cropped sizes, responsive variants, theme sizes and plugin sizes. Change the theme or remove a plugin and part of that family is left behind. Image Manager shows which generated sizes are referenced, protected, duplicated or left unregistered.

[Read our reviews on Trustpilot ↗](https://www.trustpilot.com/review/wpmultitool.com)

## The media library is bigger than the images you uploaded

WordPress does not store only the file you uploaded. It generates additional image files for registered sizes, then plugins and themes can register more. A single original can leave many derivative files on disk, each with its own entry in attachment metadata.

Why the clutter is hard to see

The Media Library shows attachments, not per-size disk usage. A removed plugin does not announce which generated sizes it used to register. A new theme does not clean up the old theme's derivatives. Storage grows quietly and backups grow with it.

The important distinction: in this context, unused means an unused generated size. It does not prove that the original uploaded image is unused in content. Image Manager is built around the first question and does not claim that an original attachment can be deleted merely because it looks unattached.

## Find sizes with no detected reference

[Image Manager](https://wpmultitool.com/docs/image-manager/) analyzes the registered image sizes and attachment metadata, then separates three kinds of waste: duplicate sizes with nearly identical dimensions, registered sizes with no detected references, and orphan size entries still present in metadata for sizes no active code registers. Those orphans are often leftovers from a removed or changed theme or plugin, and they are not covered by the registered-size reference scan.

| Signal | What it means |
| --- | --- |
| Duplicate within 5 percent | Two sizes are close enough in dimensions that one may be redundant. |
| No reference detected | No size reference token was detected in post content, Elementor data, media image widgets or PHP files in the active or parent theme. |
| Orphan size | Attachment metadata still contains files for a size nothing registers any more. |
| Protected size | Core, shop, theme and currently registered third-party plugin sizes are protected; sizes created in Image Manager are the deliberate exception. |

For post content, the scan looks for size reference tokens in published, draft, pending, private and scheduled posts. It also scans Elementor data, media image widgets and PHP files in the active or parent theme. It does not scan block-theme HTML templates, and direct file URLs or srcset references are not reliably detected. Results carry the source of the reference, so content, Elementor, widget and theme usage are not collapsed into one vague yes.

## Reclaim generated files without touching originals

The reclaim action deletes generated intermediate files for the selected size across the media library and removes that size from attachment metadata. The unscaled original and the current full-size attachment file are never targets. If the exact same file is still used by another size, the current full-size attachment file or the unscaled original, it is left alone; only the metadata entry for the selected size is removed.

Future generation of the size can be disabled, so the same derivative does not come back on the next upload. Where the size still has a registered width, height and crop definition, the Regenerate action can recreate its files from the current attachment file. An orphan left by removed or changed code may no longer have that registered definition.

Verification is part of the feature

No-reference detection is heuristic. Edge caching, dynamic REST-driven display, direct file URLs, srcset references and social-image contexts can hide real usage from the scan. The interface says so, and large libraries can hit the scan row cap. Verify important sizes before disabling or reclaiming them.

## What Image Manager does not do

- **It does not delete original uploads as unused media.** Unattached is not the same as unused, and false positives there are expensive.
- **It does not treat every unreferenced size as safe.** Currently registered third-party plugin, active or parent theme, core and shop-prefixed sizes are protected from reclaim; custom sizes created in Image Manager remain reclaimable.
- **It does not promise a complete reference graph.** Dynamic templates, direct file URLs, srcset references, block-theme HTML templates, edge-cached HTML, REST consumers and other indirect uses can be invisible.
- **It does not optimize image bytes.** Compression, WebP conversion and CDN delivery are separate problems.
- **It does not regenerate what no longer has a registered definition.** Originals stay untouched, but orphan sizes from removed or changed code may not be recreatable.
- **It does not back up derivative files before reclaim.** Reclaim deletes generated files directly; restoration depends on regeneration when the definition exists or on your own site backup.
- **It does not batch large reclaim or regeneration jobs.** Very large libraries can hit a request timeout after partial progress.

Start with the size-level report. Treat orphan sizes as evidence to investigate, not as an automatic reclaim list, and verify them manually before removal. Then decide whether duplicate registered sizes deserve a redesign.

[Get WP Multitool - from $79/year](https://wpmultitool.com/pricing/)

## Unused image storage questions

### Does WordPress delete old image sizes when I change themes?

No. Files generated for the old theme can remain in uploads and in attachment metadata. WordPress has no built-in owner tracking that says which plugin or theme originally needed each derivative file.

### Are unattached images the same as unused images?

No. An attachment can be used in a template, widget, block pattern, shop layout or external feed without being attached to a post. Image Manager therefore focuses on generated image sizes and references, not on deleting original uploads.

### Will reclaiming a size delete the original image?

No. The reclaim action targets generated intermediate files for that size and removes the size entry from metadata. The unscaled original and the current full-size attachment file are not deletion targets, and shared files are not removed when another size still points at them.

### Can reclaimed files be restored?

When the size still has a registered width, height and crop definition, files can be regenerated from the current attachment file. An orphan size left by removed or changed code may not have that definition any more. Treat reclaim as a deliberate cleanup decision because Image Manager does not back up the deleted derivative files.

### Why does the scan say no reference when I still use the image?

Reference detection is heuristic. It scans size reference tokens in post content, Elementor data, media image widgets and PHP files in the active or parent theme, but direct file URLs, srcset references, block-theme HTML templates, dynamic REST rendering, edge caches, social-image consumers and other indirect uses can be invisible. Verify before disabling anything important.

## Related Guides

[Database bloat cleanup →](https://wpmultitool.com/database-bloat/) [Orphaned metadata in the database →](https://wpmultitool.com/orphaned-metadata/) [wp_options is huge →](https://wpmultitool.com/wp-options-huge/) [Site Doctor: scan the whole stack →](https://wpmultitool.com/site-doctor/) [Reclaim WordPress image storage →](https://wpmultitool.com/blog/reclaim-wordpress-image-storage/)

## Reclaim generated sizes with originals protected

WP Multitool Pro includes Image Manager plus the cleanup and diagnostic modules, so media storage is handled with references, protections and visible limits. It is $79/year for one site, and every WP Multitool Pro plan includes all 19 modules.

[Get WP Multitool - from $79/year](https://wpmultitool.com/pricing/) [Image Manager Docs](https://wpmultitool.com/docs/image-manager/) [All plans on the pricing page →](https://wpmultitool.com/pricing/)