Archive Shopify Products if Sold Out for 30 Days
Keep your storefront tidy and shopper-friendly by automatically archiving products that have been sold out for 30 days. As soon as a product goes out of stock, this template begins tracking it. If the product is still unavailable after 30 days, MESA will update its status to Archived. When you install this template, it will also install the 'Track Out-of-Stock Shopify Products' template. Both workflows must be enabled for the archive process to work correctly.
Trusted by 1,000+ Shopify merchants — from solo operators to scaling brands.

How it works
5 steps to automatically archive products that stay sold out for 30 days
Schedule
Schedule
Query Database for Long-Term Stockouts
Query Database for Long-Term Stockouts
Loop Through Products
Loop Through Products
Update Database Record
Update Database Record
Archive Product in Shopify
Archive Product in Shopify
Ready to automatically archive products that stay sold out for 30 days
Get setup in 5 minutes.
Frequently asked questions
What if a product gets restocked before the 30-day mark?
You'll need a companion workflow that monitors inventory and removes or updates the database record when products come back in stock. Without this, the archiving workflow might archive a restocked product if its database record still shows it as sold out for 30+ days.
Can I change the 30-day threshold to something shorter or longer?
Yes, edit the database query in Step 2 to change the day calculation. Replace "30" with your desired threshold (like "14" for two weeks or "60" for two months). The query typically uses a SQL condition like WHERE (CURRENT_DATE - "Sold Out Start Date") >= 30.
What happens to archived products in Shopify?
Archived products are removed from your online store but remain in Shopify admin under Products > Archived. They retain all data (images, descriptions, variants, inventory) and can be easily unarchived by changing their status back to "Active" or "Draft" when you're ready to restock and republish them.
Make this template your own!
Customize this workflow even further:
You're in good company
"MESA has been a game changer for us. And, if you ever get stuck, their support team is always super helpful."
"It's like Zapier but exactly designed for Shopify. I have been able to complete all the workflows that I've needed."
"The MESA team has been amazing at helping us set up our automations. We would highly recommend this app!"
Ready to automatically archive products that stay sold out for 30 days?
7-day free trial • 5 min setup • Cancel anytime
Need help? Our automation experts will help you personalize this workflow for free. Contact support