Bulk delete Shopify product variants

Variant Command DELETE on the variant row. The product stays. Command DELETE on the product row removes the whole product.

Use this to drop one size or color. Delete products removes the product. Add variants is the create path.

Columns

NeedColumns
MinimumHandle, Variant SKU (or Option values), Variant Command DELETE.
RecommendedID, Handle, Variant SKU, Variant Command DELETE.
Empty cellsEmpty Variant Command is MERGE for that variant.

Steps

  1. Export Products so every variant is a row.
  2. On the rows to remove, set Variant Command DELETE. Leave other variants off the file, or leave their Variant Command empty.
  3. Import, Dry run on. Confirm Would update on the product and that the right SKU is listed.
WOOL-L is removed. WOOL-M stays. The product wool-coat stays.

What a dry-run comment looks like

Would update on the product. Variant Command DELETE is applied on write.

What fails

  • Command DELETE on the product row deletes the product, not one variant.
  • Deleting the last variant is not the same as deleting the product. Use product Command DELETE for that.
  • SKU not on that product.

FAQ

Can I delete by option value?
Match the variant the same way as any update: SKU, barcode, or option values. Then Variant Command DELETE.
Inventory goes to zero instead?
Update inventory. That does not remove the variant.
Last variant?
Deleting the last variant is not deleting the product. Use product Command DELETE for that.
Dry run?
Import Comment is Would update on the product row (the variant is gone after write). Read analysis for ALYS011 on product DELETE, not variant DELETE.