{"id":121985,"date":"2020-06-04T10:54:59","date_gmt":"2020-06-04T10:54:59","guid":{"rendered":"https:\/\/wordpress.org\/plugins\/wc-delete-product-images\/"},"modified":"2026-03-19T14:47:38","modified_gmt":"2026-03-19T14:47:38","slug":"wc-delete-product-images","status":"publish","type":"plugin","link":"https:\/\/es.wordpress.org\/plugins\/wc-delete-product-images\/","author":9137856,"comment_status":"closed","ping_status":"closed","template":"","meta":{"version":"3.0","stable_tag":"3.0","tested":"6.9.9","requires":"4.7","requires_php":"7.4","requires_plugins":null,"header_name":"Delete product images for WooCommerce","header_author":"Eduard V. Doloc","header_description":"Removes product assigned images (featured and gallery only) on product delete.","assets_banners_color":"","last_updated":"2026-03-19 14:47:38","external_support_url":"","external_repository_url":"","donate_link":"https:\/\/www.paypal.me\/eduardvd","header_plugin_uri":"https:\/\/uprise.ro","header_author_uri":"","rating":5,"author_block_rating":0,"active_installs":1000,"downloads":12291,"num_ratings":7,"support_threads":0,"support_threads_resolved":0,"author_block_count":0,"sections":["description","installation","faq","changelog"],"tags":{"3.0":{"tag":"3.0","author":"rwky","date":"2026-03-19 14:47:38"}},"upgrade_notice":{"":"<p>None<\/p>"},"ratings":{"1":0,"2":0,"3":0,"4":0,"5":7},"assets_icons":{"icon.svg":{"filename":"icon.svg","revision":3486587,"resolution":false,"location":"assets","locale":false}},"assets_banners":[],"assets_blueprints":{},"all_blocks":[],"tagged_versions":["3.0"],"block_files":[],"assets_screenshots":[],"screenshots":[]},"plugin_section":[],"plugin_tags":[186722,186725,186726,186723,186727],"plugin_category":[],"plugin_contributors":[97974],"plugin_business_model":[],"class_list":["post-121985","plugin","type-plugin","status-publish","hentry","plugin_tags-product-images-delete","plugin_tags-product-images-remove","plugin_tags-remove-product-images-automatically","plugin_tags-woocommerce-product-images-delete","plugin_tags-woocommerce-product-images-remove","plugin_contributors-rwky","plugin_committers-rwky","plugin_support_reps-rwky"],"banners":[],"icons":{"svg":"https:\/\/ps.w.org\/wc-delete-product-images\/assets\/icon.svg?rev=3486587","icon":"https:\/\/ps.w.org\/wc-delete-product-images\/assets\/icon.svg?rev=3486587","icon_2x":false,"generated":false},"screenshots":[],"raw_content":"<!--section=description-->\n<p>Automatically deletes all images associated with a WooCommerce product when the product is permanently deleted from the Trash.<\/p>\n\n<p>The plugin includes multiple safety mechanisms to ensure that shared images are never removed if they are used by other active products.<\/p>\n\n<h3>Features<\/h3>\n\n<ul>\n<li><p>Deletes:<\/p>\n\n<ul>\n<li>Featured images<\/li>\n<li>Gallery images<\/li>\n<li>Variation images<\/li>\n<\/ul><\/li>\n<li><p>Runs only on permanent delete:<\/p>\n\n<ul>\n<li>Does NOT trigger when moving products to Trash<\/li>\n<\/ul><\/li>\n<li><p>Smart protection:<\/p>\n\n<ul>\n<li>Skips images used by other active products<\/li>\n<li>Ignores products already in Trash<\/li>\n<\/ul><\/li>\n<li><p>Partial deletion support:<\/p>\n\n<ul>\n<li>Deletes only unused images<\/li>\n<li>Keeps shared images intact<\/li>\n<\/ul><\/li>\n<li><p>Bulk-safe:<\/p>\n\n<ul>\n<li>Works with bulk delete and \"Empty Trash\"<\/li>\n<\/ul><\/li>\n<li><p>Logging:<\/p>\n\n<ul>\n<li>Full WooCommerce logger integration<\/li>\n<li>Tracks every step for debugging<\/li>\n<\/ul><\/li>\n<li><p>Admin control:<\/p>\n\n<ul>\n<li>Toggle image deletion ON\/OFF from the WordPress admin bar<\/li>\n<\/ul><\/li>\n<\/ul>\n\n<h3>Notes<\/h3>\n\n<ul>\n<li>The plugin is designed to be safe by default. If an image is detected as being used elsewhere, it will not be deleted.<\/li>\n<li>Best suited for stores with frequent product imports\/cleanup where media clutter can become an issue.<\/li>\n<\/ul>\n\n<p>Contributions are welcomed on <code>https:\/\/github.com\/rwkyyy\/delete-product-images-for-wc<\/code><\/p>\n\n<!--section=installation-->\n<ol>\n<li>Download the plugin<\/li>\n<li>Upload it to your site (if you've installed it through Wordpress Dashboard skip this step)<\/li>\n<li>Activate<\/li>\n<li>Enjoy!<\/li>\n<\/ol>\n\n<!--section=faq-->\n<dl>\n<dt id=\"will%20this%20work%20with%20any%20product%3F\"><h3>Will this work with any product?<\/h3><\/dt>\n<dd><p>Yes, it supports all WooCommerce product types, including simple, variable, and variations.<\/p><\/dd>\n<dt id=\"where%20can%20i%20see%20it%20working%3F\"><h3>Where can I see it working?<\/h3><\/dt>\n<dd><p>Please check the default WooCommerce logs (Woo &gt; Status &gt; Logs)<\/p><\/dd>\n<dt id=\"can%20you%20make%20it%20work%20with%20more%20cpts%3F\"><h3>Can you make it work with more CPTs?<\/h3><\/dt>\n<dd><p>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.<\/p><\/dd>\n\n<\/dl>\n\n<!--section=changelog-->\n<h4>3.0<\/h4>\n\n<ul>\n<li>Added support for variation images<\/li>\n<li>Implemented shared image protection (prevents deleting images used by other products)<\/li>\n<li>Fixed deletion logic to work only on permanent delete (not on move to trash)<\/li>\n<li>Rework support for bulk delete on empty trash<\/li>\n<li>Added admin bar toggle to enable\/disable image deletion<\/li>\n<li>Improved logging with detailed step-by-step tracking (WC Logger)<\/li>\n<li>Improved database queries to ignore trashed products<\/li>\n<li>Fixed multiple edge cases and improved overall reliability<\/li>\n<li>Performance improvements (100 simple products in &lt; 10 seconds)<\/li>\n<\/ul>\n\n<h4>2.0<\/h4>\n\n<ul>\n<li>rewrote plugin logic for better handling of both database and filesystem<\/li>\n<li>implemented multiple safeguards and error-checking<\/li>\n<li>fixed a bug where in some cases the files would not get deleted<\/li>\n<li>added logging (wc logs) for easy tracking of the activity<\/li>\n<\/ul>\n\n<h4>1.0<\/h4>\n\n<ul>\n<li>Initial release<\/li>\n<\/ul>","raw_excerpt":"Safely deletes WooCommerce product images (featured, gallery, variations) on permanent delete, with protection for shared images.","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin\/121985","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin"}],"about":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/types\/plugin"}],"replies":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/comments?post=121985"}],"author":[{"embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wporg\/v1\/users\/rwky"}],"wp:attachment":[{"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/media?parent=121985"}],"wp:term":[{"taxonomy":"plugin_section","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_section?post=121985"},{"taxonomy":"plugin_tags","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_tags?post=121985"},{"taxonomy":"plugin_category","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_category?post=121985"},{"taxonomy":"plugin_contributors","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_contributors?post=121985"},{"taxonomy":"plugin_business_model","embeddable":true,"href":"https:\/\/es.wordpress.org\/plugins\/wp-json\/wp\/v2\/plugin_business_model?post=121985"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}