forget
Deletes memories by search query or memory ID with confirmation before removal. Use when removing outdated information, incorrect memories, sensitive data, or cleaning up after experiments.
Install this skill
No account required. Pick your tool, or use the command that detects it for you.
Run in your terminal. It detects your AI tool.
npx @skills-hub-ai/cli install mem0-integrations-pi-agent-plugin-forgetManual setup by platform
Claude Code
~/.claude/skills/mem0-integrations-pi-agent-plugin-forget/SKILL.md
Signing
SignedSLSA L2- Signed by
- skills-hub.ai distributor
- Method
- Distributor-signed by skills-hub.aiCryptographically signed by the skills-hub.ai distributor key at publish time.
- Signed
Instructions
Forget
Delete specific memories from Mem0.
Execution
Step 1: Parse input
The user provides either:
- A search query:
/mem0-forget travel plans - A memory ID:
/mem0-forget <memory_id>
If no argument, ask: "What should I forget? Provide a search query or memory ID."
Step 2: Find memories
If memory ID provided (looks like a UUID or hex string):
- Use
mem0_memorytool withaction="search"and the ID as query, or look it up directly. - Show:
Found: "<memory content first 120 chars>" (created <date>)
If search query provided:
- Use
mem0_memorytool withaction="search",query=<user's query>. - Show numbered list:
Found <N> memories matching "<query>": 1. <content, 120 chars> [<category>] [ID: <short_id>] 2. ...
Step 3: Confirm
Ask: "Delete which memories? Enter numbers (e.g., 1,3,5), 'all', or 'cancel'."
For a single memory ID, ask: "Delete this memory? [y/N]"
Never delete without confirmation. This is destructive.
Step 4: Delete
For each confirmed memory, use mem0_memory tool with action="delete" and the memory ID.
Step 5: Report
Deleted <N> memories.
If any deletions failed, report which ones and why.
Security
Reviews (0)
Related skills
Browse all →More from mem0
View source →More Build skills
Browse category →Frequently asked questions about forget
What does the forget skill do?
Deletes memories by search query or memory ID with confirmation before removal. Use when removing outdated information, incorrect memories, sensitive data, or cleaning up after experiments. It's a reusable SKILL.md instruction set that loads into your AI coding assistant on demand, no prompt engineering, no copy-pasting every session.
How do I install the forget skill?
Run `npx @skills-hub-ai/cli install mem0-integrations-pi-agent-plugin-forget` from your terminal. The CLI writes the SKILL.md to the correct location for your AI tool (e.g. ~/.claude/skills/mem0-integrations-pi-agent-plugin-forget/ for Claude Code or ~/.cursor/skills/ for Cursor with --target cursor) and adds it to your project's .skills.json lockfile.
Which AI tools does forget work with?
forget runs in Claude Code. It follows the open Agent Skills standard (SKILL.md), so the same skill works in every supported tool without modification.
Is the forget skill free?
Yes. Every skill on skills-hub.ai is free and open-source. There are no premium tiers, paywalls, or usage limits. You only pay for whatever AI assistant you're already using.
How do I use forget after installing it?
In Claude Code, type `/mem0-integrations-pi-agent-plugin-forget` (or whatever slash command the skill registers) and the AI follows the skill's instructions immediately. You can also reference it by name in natural language, your AI loads the skill into context when relevant.
Can I share the forget skill with my team?
Yes. Commit your project's .skills.json lockfile and teammates run `npx @skills-hub-ai/cli install` (no args) to install every skill at the exact version you pinned. Organization-scoped installs work via skills-hub.ai organizations.