We would like to remove all product images from the database and the file-system in Magento 2.2.8 shop.
There is a solution for Magento 1
Magento Delete all Product Images
Can this easily be adapted to Magento 2?
I am thinking about
rm -r pub/media/catalog/product/? pub/media/catalog/product/cache # keeping placeholder folder
- And deleting from some tables in the database (which one) ?
- Reindex
is this safe or are complications to expect?
We rather would not like to iterate over each product and save it, because of performance reasons.