forget · mem0ai — Claude Code skill: memory deletion and setup
This skill removes Mem0 memories for a user and repository. Use it when you want an agent to clear or forget stored memories.
Apache-2.0 155 installs ★ 69,319 updated 2026-10-23
npx skills add mem0ai/mem0 --skill forget -a claude-codeWhat forget does
forget removes the current user's remote Mem0 memories associated with the repository. Before taking action, the agent must explain what will be erased and get your confirmation. Shared project memory remains unless you explicitly request its removal; deleting it affects everyone working in the repository.
The skill runs memory_cli.py with --remote --yes. To clear local data only, it runs the command without --remote. Confirmation is required before --yes is passed. Removing shared memory also requires --include-project-memory.
What it helps with
- remove a user's remote memories for a repository
- clear the local evidence log and pending queue
- delete shared project memory at the user's request
Example prompts for the agent
- Run
forgetand remove my remote memories for this repository. - Clear the local memory data, including the evidence log and pending queue.
- Also delete the shared project memory for everyone working in this repository.
How to install forget
1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill forget -a claude-code2Manually: put the files in place
~/.claude/skills/forget/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/forget/
1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill forget -a codex2Manually: put the files in place
.agents/skills/forget/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill forget -a cursor2Manually: put the files in place
.cursor/skills/forget/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install mem0ai/mem0 integrations/antigravity-plugin/skills/forget2Manually: put the files in place
.github/skills/forget/SKILL.md1Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill forget -a gemini-cli2Platform CLI
gemini skills install https://github.com/mem0ai/mem0 --path integrations/antigravity-plugin/skills/forgetManually: put the files in place
.devin/skills/forget/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add mem0ai/mem0 --skill forget -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
Step by step, with commands for each platform: How to install skills in Claude Code: five ways
Questions about forget
How do I install forget in Claude Code?
Run npx skills add mem0ai/mem0 --skill forget -a claude-code. The skill file is located at ~/.claude/skills/forget/SKILL.md.
What does forget do?
It deletes the current user's remote Mem0 memories for the repository. The agent must describe the deletion and receive confirmation first.
Does forget delete shared repository memory?
Shared project memory stays unless you explicitly ask to remove it. That deletion applies to everyone working in the repository.
Source text
SKILL.md · Apache-2.0
---
name: forget
description: Delete the Mem0 memories stored for this repository and this user. Use when the user asks to forget, clear, wipe, or delete memories.
disable-model-invocation: true
---
# Forget this repository's memories
This permanently deletes remote memories. Before running anything, tell the
user exactly what will be deleted: their own memories for this repository
only. The repository's project memory is shared by everyone who works in it,
so it stays unless the user explicitly asks to delete that too.
After the user confirms, run:
```bash
python3 "${ANTIGRAVITY_PLUGIN_ROOT}/core/memory_cli.py" --harness "antigravity" forget --remote --yes
```
If the user also asked to delete the repository's shared project memory, add
`--include-project-memory` and say that this removes it for every teammate.
Report what the command output says was deleted. If the user only wants local
data cleared (evidence log, pending queue), run the same command without
`--remote`. Never pass `--yes` before the user has confirmed in this
conversation.
© mem0ai · Apache-2.0 · mem0ai/mem0
Similar skills
All skills for Agent setup: memory, context, orchestration →forget by other authors comes first.