This sample will describe how to delete existing images for products or product variants using the regular Import tool facilities.
Here’s how you can do it:
Use the “Export” page of your store’s Admin area (Catalog > Export) to export your existing products.
Download the resulting export file and open it in a spreadsheet editor.
Edit the file removing the columns whose contents will not need to be updated. Care not to remove the required columns.
According to CSV import: Products, the required columns for importing products are sku and name; you will need to keep them.
If you need to remove images not just for simple products but for product variants as well, you will also need to keep the column variantSKU - the values in this column are needed to identify specific variants.
As you will update the images of products or product variants, you should also keep the columns images (for simple products) and variantImage (for variants).
This is how your file may look as a result:
For the products and product variants that need to have their images removed, replace the image URL (file path) with the word “NULL” (in capitalized case).
Save the file and import it back via the “Import” page in your store’s Admin area (Catalog > Import).
After the import process is completed, you should see that the product or variant images for which you have specified the path as “NULL” have been removed.