Delete product images for WooCommerce
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 Ga
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