Title: Delete product images for WooCommerce
Author: Eduard Doloc
Published: <strong>June 4, 2020</strong>
Last modified: March 19, 2026

---

Search plugins

![](https://ps.w.org/wc-delete-product-images/assets/icon.svg?rev=3486587)

# Delete product images for WooCommerce

 By [Eduard Doloc](https://profiles.wordpress.org/rwky/)

[Download](https://downloads.wordpress.org/plugin/wc-delete-product-images.3.0.zip)

 * [Details](https://wordpress.org/plugins/wc-delete-product-images/#description)
 * [Reviews](https://wordpress.org/plugins/wc-delete-product-images/#reviews)
 *  [Installation](https://wordpress.org/plugins/wc-delete-product-images/#installation)
 * [Development](https://wordpress.org/plugins/wc-delete-product-images/#developers)

 [Support](https://wordpress.org/support/plugin/wc-delete-product-images/)

## Description

Automatically deletes all images associated with a WooCommerce product when the 
product is permanently deleted from the Trash.

The plugin includes multiple safety mechanisms to ensure that shared images are 
never removed if they are used by other active products.

### Features

 * Deletes:
    - Featured images
    - Gallery images
    - Variation images
 * Runs only on permanent delete:
    - Does NOT trigger when moving products to Trash
 * Smart protection:
    - Skips images used by other active products
    - Ignores products already in Trash
 * Partial deletion support:
    - Deletes only unused images
    - Keeps shared images intact
 * Bulk-safe:
    - Works with bulk delete and “Empty Trash”
 * Logging:
    - Full WooCommerce logger integration
    - Tracks every step for debugging
 * Admin control:
    - Toggle image deletion ON/OFF from the WordPress admin bar

### Notes

 * The plugin is designed to be safe by default. If an image is detected as being
   used elsewhere, it will not be deleted.
 * Best suited for stores with frequent product imports/cleanup where media clutter
   can become an issue.

Contributions are welcomed on `https://github.com/rwkyyy/delete-product-images-for-
wc`

## Installation

 1. Download the plugin
 2. Upload it to your site (if you’ve installed it through WordPress Dashboard skip
    this step)
 3. Activate
 4. Enjoy!

## FAQ

### Will this work with any product?

Yes, it supports all WooCommerce product types, including simple, variable, and 
variations.

### Where can I see it working?

Please check the default WooCommerce logs (Woo > Status > Logs)

### Can you make it work with more CPTs?

To be honest, I did not found the motivation in putting the work for making the 
plugin compatible with any CPT, but if I see interest in this plugin I’ll do that
in time, or if you want to submit the update/any other updates yourself, just make
a pull on Github and I’ll update it here.

## Reviews

![](https://secure.gravatar.com/avatar/b2a0198949c2226776765ff222938bd68bae4938572bb0d70d9e00d99be51274?
s=60&d=retro&r=g)

### 󠀁[Not work](https://wordpress.org/support/topic/not-work-344/)󠁿

 [fabianoloureiro](https://profiles.wordpress.org/fabianoloureiro/) April 9, 2025
1 reply

I delete the products and then permanently delete and it doesn’t work

![](https://secure.gravatar.com/avatar/386e9a1ecb915bf825173a9e48974126486f8ecdfeaec640bf92d439786e06a0?
s=60&d=retro&r=g)

### 󠀁[Cumple su función](https://wordpress.org/support/topic/cumple-su-funcion-9/)󠁿

 [Algar](https://profiles.wordpress.org/algardigital/) September 22, 2023

Cumple con su función muy bien y es de gran ayuda para ahorrar espacio en el servidor.

![](https://secure.gravatar.com/avatar/3f217c108b750b20ebee0b82caf4a971a9c712688abb8630f9294be23f6c387c?
s=60&d=retro&r=g)

### 󠀁[don’t work](https://wordpress.org/support/topic/dont-work-371/)󠁿

 [garangol](https://profiles.wordpress.org/garangol/) September 2, 2022 1 reply

it didn’t work at all

![](https://secure.gravatar.com/avatar/7c59d82b5d8dac9c87bec7f538bed4613f30420e46461a3104bfa8d20566d761?
s=60&d=retro&r=g)

### 󠀁[Does what is says!](https://wordpress.org/support/topic/does-what-is-says-81/)󠁿

 [Chris K.](https://profiles.wordpress.org/agios667/) April 21, 2022

Just be carefull. In order for the images to be deleted you have to delete permanently
the product!

![](https://secure.gravatar.com/avatar/4cdf2635e45afb18d4cd1f87add1df87430bc2507ef432fd1a7eb38e5de1b7ca?
s=60&d=retro&r=g)

### 󠀁[Aun funciona bien 2021](https://wordpress.org/support/topic/aun-funciona-bien-2021/)󠁿

 [gabrielbra](https://profiles.wordpress.org/gabrielbra/) April 28, 2021

Aun funciona bien 2021

![](https://secure.gravatar.com/avatar/20f8756c20a18fe6bbf769e223fca7f424ac3dd93c831a069d446c6242a017a4?
s=60&d=retro&r=g)

### 󠀁[Works great!](https://wordpress.org/support/topic/works-great-7200/)󠁿

 [Digital Marketing Stars](https://profiles.wordpress.org/digitalmarketingstars/)
October 20, 2020

This plugin works great, thanks!

 [ Read all 7 reviews ](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/)

## Contributors & Developers

“Delete product images for WooCommerce” is open source software. The following people
have contributed to this plugin.

Contributors

 *   [ Eduard Doloc ](https://profiles.wordpress.org/rwky/)

“Delete product images for WooCommerce” has been translated into 1 locale. Thank
you to [the translators](https://translate.wordpress.org/projects/wp-plugins/wc-delete-product-images/contributors)
for their contributions.

[Translate “Delete product images for WooCommerce” into your language.](https://translate.wordpress.org/projects/wp-plugins/wc-delete-product-images)

### Interested in development?

[Browse the code](https://plugins.trac.wordpress.org/browser/wc-delete-product-images/),
check out the [SVN repository](https://plugins.svn.wordpress.org/wc-delete-product-images/),
or subscribe to the [development log](https://plugins.trac.wordpress.org/log/wc-delete-product-images/)
by [RSS](https://plugins.trac.wordpress.org/log/wc-delete-product-images/?limit=100&mode=stop_on_copy&format=rss).

## Changelog

#### 3.0

 * Added support for variation images
 * Implemented shared image protection (prevents deleting images used by other products)
 * Fixed deletion logic to work only on permanent delete (not on move to trash)
 * Rework support for bulk delete on empty trash
 * Added admin bar toggle to enable/disable image deletion
 * Improved logging with detailed step-by-step tracking (WC Logger)
 * Improved database queries to ignore trashed products
 * Fixed multiple edge cases and improved overall reliability
 * Performance improvements (100 simple products in < 10 seconds)

#### 2.0

 * rewrote plugin logic for better handling of both database and filesystem
 * implemented multiple safeguards and error-checking
 * fixed a bug where in some cases the files would not get deleted
 * added logging (wc logs) for easy tracking of the activity

#### 1.0

 * Initial release

## Meta

 *  Version **3.0**
 *  Last updated **4 months ago**
 *  Active installations **1,000+**
 *  WordPress version ** 4.7 or higher **
 *  Tested up to **6.9.5**
 *  PHP version ** 7.4 or higher **
 *  Languages
 * [English (US)](https://wordpress.org/plugins/wc-delete-product-images/) and [Swedish](https://sv.wordpress.org/plugins/wc-delete-product-images/).
 *  [Translate into your language](https://translate.wordpress.org/projects/wp-plugins/wc-delete-product-images)
 *  [Advanced View](https://wordpress.org/plugins/wc-delete-product-images/advanced/)

## Ratings

 5 out of 5 stars.

 *  [  6 5-star reviews     ](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/?filter=5)
 *  [  0 4-star reviews     ](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/?filter=4)
 *  [  0 3-star reviews     ](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/?filter=3)
 *  [  0 2-star reviews     ](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/?filter=2)
 *  [  0 1-star reviews     ](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/#new-post)

[See all reviews](https://wordpress.org/support/plugin/wc-delete-product-images/reviews/)

## Contributors

 *   [ Eduard Doloc ](https://profiles.wordpress.org/rwky/)

## Support

Got something to say? Need help?

 [View support forum](https://wordpress.org/support/plugin/wc-delete-product-images/)

## Donate

Would you like to support the advancement of this plugin?

 [ Donate to this plugin ](https://www.paypal.me/eduardvd)