# Clean Out Expired and Unused Coupons

> Clears the clutter of old campaign codes from your coupon list, with a full backup of their settings first.

- Job: [Store setup & admin](https://storeagent.ai/mcp-recipes/job/setup/)
- What it does: Asks first: changes your store, only after you say yes
- Time saved: ~25 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + Advanced Coupons
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/coupon-cleanup/

## The prompt

```text
Help me clean up my coupon list. Find coupons that expired more than 90 days ago, and coupons that have never been used. Show me a table with the code, type, amount, usage count and expiry date. Before you trash anything, export the full settings of those coupons and show me the export so I have a copy. Then wait for my OK. Only trash the coupons I confirm, one by one, and tell me if any of them fail.
```

## What happens when you paste it

You: Help me clean up my coupon list…

Assistant: 37 coupons qualify: 29 expired before July, and 8 have never been used. The export of all 37 coupon settings is ready for you to save. Calling: `advanced-coupons/list-coupons`, `advanced-coupons/export-coupons`, `advanced-coupons/delete-coupon`.

Assistant: This will make changes in WooCommerce. Do you want me to go ahead?

Assistant: I moved the 33 coupons you confirmed to the trash. You kept SUMMER-VIP and 3 others. You can restore any of them from the coupon trash for the next 30 days.

## Abilities this recipe calls

- **List coupons** (`advanced-coupons/list-coupons`, read only, from Advanced Coupons): Lists your coupons with type, amount, usage count and expiry date, with filters.
- **Export coupons** (`advanced-coupons/export-coupons`, read only, from Advanced Coupons): Exports full coupon settings, including advanced options, for review or backup.
- **Trash coupon** (`advanced-coupons/delete-coupon`, asks first, from Advanced Coupons): Moves a coupon to the trash.

## Variations

Add one of these to the end of the prompt. Swap anything in [brackets] for your own details.

- Only look at coupons that expired more than [number] days ago.
- Do not include any coupon with a code that starts with [prefix].

## Related recipes

- [Check What Your AI Assistant Actually Knows](https://storeagent.ai/mcp-recipes/ai-memory-health.md): A quick health check on which of your store content is indexed, pending or failing in StoreAgent memory.
- [Audit Every Membership Plan in One Go](https://storeagent.ai/mcp-recipes/membership-plans-audit.md): Lists every membership plan with its settings, so drafts and half-finished plans stand out.
- [Make the Chat Assistant Match Your Brand](https://storeagent.ai/mcp-recipes/chat-assistant-branding.md): Gives the chat assistant your brand colors, a name and a greeting that sounds like your store, instead of the defaults.

---

Part of the StoreAgent WooCommerce MCP Recipes directory: https://storeagent.ai/mcp-recipes/ (index for LLMs: https://storeagent.ai/mcp-recipes/llms.txt). Get StoreAgent free: https://app.storeagent.ai/sign-up/
