shopify-admin-discount-hygiene-cleanup

Audit Shopify discount catalogs and delete expired or idle codes via GraphQL.

174|18|Updated Apr 11, 2026
One-click install
npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-discount-hygiene-cleanup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: shopify-admin-discount-hygiene-cleanup
Source: https://github.com/40RTY-ai/shopify-admin-skills/tree/main/skills/store-management/shopify-admin-discount-hygiene-cleanup
Command: npx skills add https://github.com/40RTY-ai/shopify-admin-skills --skill shopify-admin-discount-hygiene-cleanup

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Discount code sprawl makes your Shopify admin harder to manage and increases the risk of customers receiving invalid or obsolete codes during campaigns and checkout.

Core Features & Use Cases

  • Finds expired discounts and zero-redemption codes using redemption and expiry data so you can remove clutter from long-running catalogs.
  • Detects duplicate discount code prefixes (via title/code patterns) to reduce confusion and prevent overlapping promotions.
  • Supports safe review via dry runs that reports what would be deleted before you commit destructive changes.

Quick Start

Ask the skill to audit your store discounts and output the flagged results as a CSV using dry_run true before any deletions.

Frequently Asked Questions about shopify-admin-discount-hygiene-cleanup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I clean up expired Shopify discount codes in bulk?

To clean up expired Shopify discount codes, you can audit and remove them using GraphQL discountNodes queries and discountCodeDelete mutations, targeting expired and zero-redemption codes to reduce catalog clutter.

Can I preview which Shopify discounts will be deleted before committing?

Yes, you can preview Shopify discount deletions safely by enabling the dry_run guardrail, which audits and reports flagged codes without executing destructive mutations.

How do I find duplicate discount code prefixes in my Shopify admin?

You can find duplicate discount code prefixes in Shopify by auditing title and code patterns across your catalog to detect overlapping promotions and reduce customer confusion.

What's the best way to archive seasonal Shopify promotions automatically?

The best way to archive seasonal Shopify promotions is through catalog hygiene cleanup automation that targets post-campaign discounts via GraphQL queries and conditional deletion based on expiry data.

Does Shopify GraphQL pagination handle large discount catalogs for auditing?

Yes, Shopify GraphQL pagination handles large discount catalogs during auditing by iterating through discountNodes queries to ensure all expired and idle codes are captured for cleanup.

Why do customers receive invalid Shopify discount codes during checkout?

Customers receive invalid Shopify discount codes during checkout due to discount code sprawl, where expired or obsolete codes remain in the catalog and are mistakenly applied or displayed.