Keeps what is still in use
A picture shared with another product or page is never removed. It is kept and shown in the list of retained images.
Delete a WooCommerce product and its leftover pictures go with it, while images still in use are kept. Free on WordPress.org.

When you delete a WooCommerce product, WordPress removes the product but leaves its photos in the media library. Over months, stores collect thousands of pictures that no product uses, and nobody wants to sort through them by hand.
Product Media Cleaner does that tidy-up for you. It remembers which pictures belonged to a product, double-checks that nothing else on your site still uses them, and only then removes what is truly unused, with a log of every change.
What happens next
Five quiet steps, none of which you have to do yourself.
Nothing changes in how you work. Delete products the way you always do.
The plugin remembers which images belonged to that product before it disappears.
Clean-up runs quietly in the background, so your admin stays quick.
If another product or page still uses an image, it stays.
Unused images go, and every change is written to a record you can read.
Example entries with sample data.

See what is waiting and when it last ran.
Run now, pause, or clear the queue.
Choose how careful the reuse check should be.
Read what was deleted and what was kept.
A picture shared with another product or page is never removed. It is kept and shown in the list of retained images.
Every removal is logged with the time, the image and the product it came from.
Removed pictures are deleted for good, so keep a regular backup, as you should for any store.
The free edition is on WordPress.org, so you can try it on your own store today.
Try it today
Install it from your WordPress dashboard, or open the plugin page to read the details and reviews.
Free on WordPress.org and used on live WooCommerce stores.

SEO Manager handles titles, rich results, sitemaps, redirects, indexing and search reports in one fast plugin, with a safe one-click switch from Rank Math.
MARB Tracking sends every key shopping event to Meta from the browser and your server, counts each sale once, and builds your Meta and Google product feeds, all in one lightweight plugin.

Instant live product search for WooCommerce, with a self-repairing index and clear search reports. Tested over a year in multiple stores.