# Remove Pages the Chat Assistant Should Not Learn From

> Finds old, test or private-looking pages in the assistant's memory so it stops quoting them to shoppers.

- Job: [Content & SEO](https://storeagent.ai/mcp-recipes/job/content/)
- 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)
- Works in: Claude, ChatGPT, Cursor and any MCP client connected to the store through StoreAgent MCP
- Web page: https://storeagent.ai/mcp-recipes/ai-memory-cleanup/

## The prompt

```text
List all the pages and posts that are in our StoreAgent AI memory, with their title and whether they are indexed. Point out anything the chat assistant should not learn from, like test pages, old promotions, draft-looking titles, internal notes or duplicates. Show me the list with a short reason for each and wait for my OK. Then take only the ones I approve out of AI memory.
```

## What happens when you paste it

You: List all the pages and posts that are in our StoreAgent AI memory, with their title and whether they are indexed…

Assistant: AI memory has 58 pages and 120 posts. 9 look wrong, like "Test page 2", "Black Friday 2024" and "Staff discount codes". Calling: `storeagent/get-memory-content-status`, `storeagent/list-memory-content`, `storeagent/toggle-memory-content`.

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

Assistant: Done. Took 7 of the 9 out of AI memory, as you asked. The assistant will no longer use "Staff discount codes" or the 2024 sale pages.

## Abilities this recipe calls

- **Check AI memory by content type** (`storeagent/get-memory-content-status`, read only, from StoreAgent): Shows total, indexed, failed and pending counts for each content type in AI memory.
- **List AI memory content** (`storeagent/list-memory-content`, read only, from StoreAgent): Lists the pages, posts and products the chat assistant can learn from, and if each is indexed.
- **Include or exclude content** (`storeagent/toggle-memory-content`, asks first, from StoreAgent): Adds one page, post or product to the chat assistant's memory, or takes it out.

## Variations

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

- Only check [post type].
- Also put back [page title] if it was taken out.

## Related recipes

- [Write Descriptions for Your Newest Products](https://storeagent.ai/mcp-recipes/new-product-descriptions.md): Drafts proper long and short copy for every product you added recently, in your tone, ready for you to check.
- [Write Alt Text for a Batch of Images](https://storeagent.ai/mcp-recipes/image-alt-text-batch.md): Paste in a list of image IDs and get accessible, search-friendly alt text written back to every one.
- [Lock a Page to Members Only](https://storeagent.ai/mcp-recipes/members-only-content.md): Checks what a page or post already restricts, then limits it to the plan you pick.

---

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/
