AI Blocks › Run your online store
Stale draft order cleaner
Get draft orders older than your set days found, and deleted if you say so. Deletes cannot be undone.
Stale draft order cleaner is a free AI skill for the job "Run your online store". Give the instructions to an AI assistant that supports the required files and tools, then review its output.
Free · No account · MIT licence · Made by 40rty AI · Level: beginner · Thinking: low
Made by 40rty AI. See the original on GitHub; we copied it as it is, with its licence.
What it does
A list of Shopify draft orders older than a set number of days, and a clean-up of them if you say yes. Old drafts pile up from abandoned quotes, half-finished manual orders and retired integrations. They clutter the admin and inflate pending revenue. The skill finds open drafts older than your cutoff (30 days by default) and shows them as a dry run first. Only after you confirm does it delete. Deletes are permanent and cannot be undone, so check that none are live B2B quotes waiting on a customer. You need the Shopify command line, a signed-in session and order read and write access.
You give it
- Your store domain
- Age in days that counts as stale (optional)
- Shopify access to read and write orders
You get
- A dry-run list of stale drafts
- Deletion of the ones you confirm
- A summary of what was removed
Use it when
- Your draft orders list is full of old items.
- Pending revenue looks too high because of stale drafts.
- You want to clear abandoned B2B quotes.
- You want to preview before anything is deleted.
How to use it
- Add it to your AI once: download it and add the folder to Claude, ChatGPT or Codex as a skill.
- Ask for the job in your own words. Your AI opens the skill when it fits.
- It works best when your AI can access your Shopify admin and change live store data.