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:

  1. Use the “Export” page of your store’s Admin area (Catalog > Export) to export your existing products.

  2. Download the resulting export file and open it in a spreadsheet editor.

  3. 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:

  4. 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).

  5. 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.

Did this answer your question?