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
| Need | Columns |
|---|---|
| Minimum | Handle, Variant SKU (or Option values), Variant Command DELETE. |
| Recommended | ID, Handle, Variant SKU, Variant Command DELETE. |
| Empty cells | Empty Variant Command is MERGE for that variant. |
Steps
- Export Products so every variant is a row.
- On the rows to remove, set Variant Command DELETE. Leave other variants off the file, or leave their Variant Command empty.
- Import, Dry run on. Confirm Would update on the product and that the right SKU is listed.
What a dry-run comment looks like
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.
