shopify-admin-draft-order-cleanup

Official

Clean up stale draft orders from Shopify

Author40RTY-ai
Version1.0.0
Installs0

System Documentation

What problem does it solve?

It reduces Shopify admin clutter and improves pending-revenue accuracy by removing stale open draft orders that build up over time from abandoned quotes or unfinished manual orders.

Core Features & Use Cases

  • Stale Draft Discovery: Searches for open draft orders older than a configurable number of days (default 30) using a Shopify Admin GraphQL query.
  • Optional Safe Deletion: Deletes matching draft orders via a GraphQL mutation with a mandatory dry-run preview option to prevent accidental removals.
  • Operational Reporting: Outputs a CSV listing found drafts and the intended action, including identifiers, customer details, totals, and timestamps.

Quick Start

Run shopify-admin-draft-order-cleanup for a given store domain with older_than_days set to 60 and dry_run enabled to preview what would be deleted.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: shopify-admin-draft-order-cleanup
Download link: https://github.com/40RTY-ai/shopify-admin-skills/archive/main.zip#shopify-admin-draft-order-cleanup

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.