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:
- Leave Resource on Products.
- Set Field to Variant & Options.
- 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 2: Choose Remove out-of-stock variants
In step 2, Choose the change:
- Set Action to Remove out-of-stock variants.
- 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.

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.

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.

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.

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.