Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magento Admin Tool to remove ALL product images

Tags:

magento

Is there an admin tool in Magento which will remove all images from all products? I know you can go product-by-product and remove all images, but I'm wondering if there's an admin tool which will do all products at once?

Thanks in advance.

like image 371
Sean Avatar asked Nov 30 '22 23:11

Sean


1 Answers

I am not sure why you would like to do this but here is a way to do it directly from the Database.

  1. Backup then truncate these 2 tables:

    catalog_product_entity_media_gallery catalog_product_entity_media_gallery_value

  2. then delete '/media/catalog/product'

  3. clear all caches.

I haven't tested it but it should do the job. If it doesnt work then restore those 2 tables

like image 145
Gershon Herczeg Avatar answered Dec 05 '22 21:12

Gershon Herczeg