"Remove Images From Directory"

How to Remove Images From Magento 2 Directory After Import

- Magento 2, Our extensions

You’ve probably been in a situation when the Magento 2 directory gets full of unnecessary product images. Therefore, it is necessary to clear them manually from time to time. If there are several unnecessary files in the directory, it’s not a big deal. However, if you regularly import hundreds of products, deleting the corresponding images may consume much time. And, unfortunately, we don’t know any instrument that can clear your Magento 2 directory automatically. But you can harness advanced import processes to keep it clear. In the following article, we shed light on how to automatically remove product images from the Magento 2 directory after every import. For more tips like that, follow our Magento 2 Developer’s Cookbook. Continue Reading