# Delete Unused Draft Membership Plans

> Clears out test and abandoned membership plans so your plan list only shows plans customers can actually join.

- 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: ~15 min vs doing it by hand
- Requires: StoreAgent (free plugin, MCP on every plan) + WooCommerce Memberships
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/unused-membership-plans/

## The prompt

```text
List all my membership plans in any status, with name, status, access method, length and how many rules each one has. Flag drafts and plans that look like tests or duplicates. Do not delete anything yet. Show me the list and wait for me to pick. Deleting a plan is permanent. Plans with active members cannot be deleted, so tell me if any of my picks fail for that reason.
```

## What happens when you paste it

You: List all my membership plans in any status, with name, status, access method, length and how many rules each one has…

Assistant: 7 plans: 4 published and 3 drafts. "Test Plan" and "Gold Plan copy" are drafts with no rules. Calling: `woocommerce-memberships/plans-list`, `woocommerce-memberships/plans-get`, `woocommerce-memberships/plans-delete`.

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

Assistant: Deleted "Test Plan" and "Gold Plan copy" after your OK. "Summer Club" was not deleted because it still has active members.

## Abilities this recipe calls

- **List membership plans** (`woocommerce-memberships/plans-list`, read only, from WooCommerce Memberships): Lists your membership plans with access, length and rules.
- **Get membership plan** (`woocommerce-memberships/plans-get`, read only, from WooCommerce Memberships): Shows one membership plan with its access method, length and rules.
- **Delete membership plan** (`woocommerce-memberships/plans-delete`, asks first, from WooCommerce Memberships): Permanently deletes a membership plan that has no active members.

## Variations

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

- Only flag plans that have no rules at all.
- Show me the full rules for [plan name] before I decide.

## 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/
