Delete images when products are deleted
By default, when a WooCommerce Product is deleted from your store, its attached media (ie. featured thumbnail image) is not deleted from your server.
This can be a problem because your server can become filled up with unused images and your database full of unnecessary data.
To fix this issue, simply install and activate the DX Delete Attached Media plugin.
How to clean up images after products are already gone?
It might be the case that you didn't already have the above plugin installed and now you have a lot of images in your Media Library no longer associated with products.
In this case, we recommend the Media Cleaner plugin.