How to remove out-of-stock variants in Shopify

Delete out-of-stock variants across many Shopify products in one run. See which variants go before you run it; deleted variants can't be undone.

  • By Merchant Control
  • 4 steps
  • 3 min read
Video: Remove out-of-stock variants in Shopify, across many products · English subtitles

In short

To remove out-of-stock variants in Shopify, open Bulk Actions in Merchant Control, set the Field to Variant & Options, choose your products and pick Remove out-of-stock variants. This deletes the variants: Preview changes lists every variant that goes, and the run cannot be undone. To keep a sold-out size for a restock instead, don't delete it: set it to Stop selling with Set selling when out of stock.

The example in this guide removes the one out-of-stock variant in a Ski Accessories collection: Ski Socks in size S.

Delete or keep?

  • Delete (this guide): the variant is gone from Shopify. Made again, it is a new variant, without its stock, image, SKU, IDs or order history.
  • Keep, but don't sell at zero stock: a tracked variant set to Stop selling under Set selling when out of stock stays in Shopify with its SKU and image, ready for a restock.

What gets removed

  • Only variants that track inventory and have a total stock below 1. Variants whose stock is unknown or not tracked are kept.
  • A product where every variant is out of stock is kept as it is. To archive whole products that are out of stock, see Set many Shopify products to draft or archived.

Remove out-of-stock variants, step by step

Step 1: Choose the products

In Merchant Control, open Bulk Actions. In step 1, Select products:

  1. Leave Resource on Products.
  2. Set Field to Variant & Options.
  3. Under Products must match, add a condition, for example Product collection › is › Ski Accessories. Here that's Ski Gloves and Ski Socks; Ski Socks in size S has no stock left.
Step 1: Field set to Variant & Options, products from the Ski Accessories collection
Step 1: Choose the products

Step 2: Choose Remove out-of-stock variants

In step 2, Choose the change:

  1. Set Action to Remove out-of-stock variants.
  2. Leave Only variants with this option value (optional) empty to include every out-of-stock variant, or enter one exact value to limit it, for example S.
Remove out-of-stock variants, no option value
Step 2: Choose Remove out-of-stock variants

Step 3: Check the preview

Press Preview changes. Nothing changes until you run it. Review and run lists each variant that goes: here Ski Socks, size S.

The note beside Run now says: This cannot be undone: a deleted variant does not come back. Made again it is a new variant, without its stock, image, SKU, IDs or order history.

Review and run: Ski Socks S will be deleted, with the note beside Run now
Step 3: Check the preview

Before you confirm: open the variant in Shopify and check its current stock: here Ski Socks in size S has 0 available. Stock can change between the preview and the run, so check it just before you press Run now. Want a record first? Export these products with File Export before you run it: see Export Shopify products to CSV.

Shopify: Ski Socks size S, 0 available
Shopify: Ski Socks size S, 0 available

Step 4: Run it

Press Run now. Merchant Control takes you to Activity, where the run is listed and shows Completed when it's done (Shopify activity log: what Merchant Control changed, and when). This run has no Undo. In Shopify, Ski Socks now has sizes M and L.

Activity: the run, Completed
Step 4: Run it

Good to know

  • No Undo: to get a size back, create the variant again in Shopify. It is a new variant, without the old one's stock, image, SKU, IDs or order history.
  • One variant or one value: Remove variant deletes the one variant with exactly the values you give. Remove option value deletes every variant that has one value. Neither can be undone.
  • Credits: every preview shows what a task will use before it runs.
  • No schedule: deleting variants can't be scheduled, not once and not on repeat. It runs only when you press Run now yourself. Save setup keeps this edit's settings for next time.

Features in this tutorial

Less work, more profit.

Get started for free

No monthly fee. Includes 100 one-time credits.