So, there is an image plugin that is intended to identify a discrepancy of image with product and I guess allow deletion from the tool or matching with a product, whichever the case. I believe that would help with the additional images files.
As to deletion of products to make file storage space, well the two aren't quite directly linked that way. The image part, okay, get that. But the content seen by customers/entered to describe the product is not really taking disk space like you may be thinking about as its all in the database.
As to performing bulk action on the database, there's
EasyPopulate V4 which could be used to 1) identify the path to the primary image for the product 2) delete the product following standard ZC product deletion process, 3) with the information about the image could perform further actions/investigation into what images need to be removed.
Be sure though that if you decide to go down the product deletion path that you will still have a good way for visitors that did have a link to the now deactivated product to be handled when the product no longer exists in the database.
Bookmarks