I have a magento Installation which has had several image imports done by the client and its got wrong images in the wrong products, toasters with fridge freezers as the initial import had the wrong img names. After a further import via CSV it seems to have appended the images rather than change them.
I need to delete all product images on the site, then re-do the CORRECT import so all the images are correct.
Is there a quick way to delete all images then do a fresh import via Dataflow Profiles and re-map the correct fields?
Any help would be awesome!
Best Answer
Fastest way to remove image,then follow below steps: delete all records from
catalog_product_entity_media_gallery
catalog_product_entity_media_gallery_value'
table because magento is save all product image data at those table.
Then index from Index management from admin for set image black.
Then remove image
from dir
then goto Your magento dir atmedia/catalog/product
and from this folder delete all file.Another Process:
Andy Simpson,you need a script which
is delete all product
from your system which willdelete from DB and file system
.Step1: Create
a php
atroot direct of magento system
which includeMage.php at first code
.Step2: set
current store is
admin and set Developer modeStep3: Get
Product Collection
and create a loop for get one product by one by oneStep4: fetch product image by one and remove image one using below code:
FULL CODE: