Delete product images for WooCommerce
v3.0Eduard Doloc · 2020年6月4日 上架
Safely deletes WooCommerce product images (featured, gallery, variations) on permanent delete, with protection for shared images.
- 正在使用
- 2,000+
- 评分
- 5.0 / 5
- 累计下载
- 1.3 万
- 最近更新
- 2026年3月19日
7 条评价需要 WordPress 4.7+已测试到 6.9.12PHP 7.4+
product images deleteproduct images removeremove product images automaticallywoocommerce product images deletewoocommerce product images remove
贡献者
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