Shopify Admin Draft Order Cleanup
Finds stale draft orders older than N days and optionally deletes them to reduce admin clutter.
Install
/plugin marketplace add 40RTY-ai/shopify-admin-skillsThe repo is a Claude Code plugin marketplace. Run /plugin afterwards to pick the plugin that includes this skill.
npx skills add 40RTY-ai/shopify-admin-skills --skill shopify-admin-draft-order-cleanupgit clone --depth 1 https://github.com/40RTY-ai/shopify-admin-skills.git /tmp/shopify-admin-skills
mkdir -p ~/.claude/skills
cp -r /tmp/shopify-admin-skills/skills/store-management/shopify-admin-draft-order-cleanup ~/.claude/skills/shopify-admin-draft-order-cleanupPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
## Purpose Queries open draft orders older than a configurable age and optionally deletes them. Draft orders accumulate from abandoned B2B quotes, incomplete manual orders, or old integrations and clutter the admin. Stale drafts also inflate pending revenue metrics. ## Prerequisites - Authenticated Shopify CLI session: `shopify store auth --store <domain> --scopes read_orders,write_orders` - API scopes: `read_orders`, `write_orders` ## Parameters | Parameter | Type | Required | Default | Description | |-----------|------|----------|---------|-------------| | store | string | yes | — | Store domain (e.g., mystore.myshopify.com) | | older_than_days | integer | no | 30 | Delete drafts older than this many days | | dry_run | bool | no | true | Preview drafts to delete without executing mutation | | format | string | no | human | Output format: `human` or `json` | ## Safety > ⚠️ `draftOrderDelete` permanently deletes draft orders. Deleted drafts cannot be recovered. Run with `dry_run: true` to review the list before committing. Check that no stale drafts represent active B2B quotes awaiting customer approval before deleting. ## Workflow Steps 1. **OPERATION:** `draftOrders` — query **Inputs:** `query: "status:open created_at:<='<NOW - older_than_days days>'"`, `first: 250`, pagination cursor **Expected output:** Stale open draft orders; paginate until `hasNextPage: false` 2. **OPERATION:** `draftOrderDelete` — mutation **Inputs:** `id: <draft_order_id>`
Details
- Skill name
shopify-admin-draft-order-cleanup- Repository
- 40RTY-ai/shopify-admin-skills
- Path
skills/store-management/shopify-admin-draft-order-cleanup/SKILL.md- License
- MIT
- Repo updated
- 26 October 2026
FAQ
What does the Shopify Admin Draft Order Cleanup skill do?
Finds stale draft orders older than N days and optionally deletes them to reduce admin clutter.
How do I install the Shopify Admin Draft Order Cleanup skill?
Claude Code plugin: /plugin marketplace add 40RTY-ai/shopify-admin-skills. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Shopify Admin Draft Order Cleanup popular?
It lives in 40RTY-ai/shopify-admin-skills, which has 204 GitHub stars and 23 forks.
Related skills
Shopify Admin Abandoned Cart Recovery
20440RTY-ai/shopify-admin-skills
Query checkouts abandoned in the last N days, generate unique discount codes per customer, and tag them for re-engagement.
Shopify Admin Address Correction
20440RTY-ai/shopify-admin-skills
Update the shipping address on an unfulfilled order before it ships.
Shopify Admin Agentic Crawler Access
20440RTY-ai/shopify-admin-skills
Edit the theme's robots.txt.liquid to explicitly allow AI crawlers (GPTBot, ClaudeBot, PerplexityBot, Google-Extended, OAI-SearchBot, Amazonbot) so AI assistants are permitted to read the catalog.
Shopify Admin Duplicate Customer Finder
20440RTY-ai/shopify-admin-skills
Read-only: finds likely duplicate customer records by matching email, phone, or name combinations.
Shopify Admin Discount Roi Calculator
20440RTY-ai/shopify-admin-skills
Read-only: calculates the true ROI of each discount code and automatic discount by comparing incremental revenue against discount cost.
Shopify Admin Duplicate Sku Barcode Detector
20440RTY-ai/shopify-admin-skills
Read-only: finds duplicate SKUs or barcodes across all product variants.
Browse the most popular Claude skills, all marketing, sales & business skills, or write your own with the skills generator.