Ecommerce Shopify WordPress Discussion

WordPress Woocommerce how to delete image from file system when you delete it in a product

) Been struggling with how to do this... I have a site where I from an external API get products for my woocommerce shop, and the API sends alot of images for some products, so I manually go into a product post and delete some of these images. How can I achieve so that when I do this, these images will be deleted from both media library AND file folder? I have already figured out how to delete them when I delete the product... The issue is taht I would for example create a product that has 15 images, then delete 5 of them, have the product on my shop for ½ year and then delete the product, but then only the 10 images still linked to the product gets deleted and I end up over time having alot of unused images... So how can I permanently delete images when I delete them via the product page in woocommerce.. (the little cross on the image) Hope it makes sense :-)
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.