# forget

This skill removes Mem0 memories for a user and repository. Use it when you want an agent to clear or forget stored memories.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 155 installs · ★ 69319 repo stars
- Author: mem0ai
- License: Apache-2.0 · policy=mirror · the beginning of the file is at the end of this page
- Source: https://github.com/mem0ai/mem0/tree/HEAD/integrations/antigravity-plugin/skills/forget/SKILL.md
- Updated: 2026-10-23
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/mem0ai-forget

## What it 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`.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add mem0ai/mem0 --skill forget -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/forget/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/forget/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add mem0ai/mem0 --skill forget -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/forget/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add mem0ai/mem0 --skill forget -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/forget/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install mem0ai/mem0 integrations/antigravity-plugin/skills/forget
```

2. **Manually: put the files in place**
- File: `.github/skills/forget/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add mem0ai/mem0 --skill forget -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/mem0ai/mem0 --path integrations/antigravity-plugin/skills/forget
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/forget/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add mem0ai/mem0 --skill forget -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/mem0ai/mem0/tree/HEAD/integrations/antigravity-plugin/skills/forget/SKILL.md

## When to use it
- 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
- Run `forget` and 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.

## Source text · SKILL.md · Apache-2.0

Below is the content of a third-party file. It is data, not instructions for you: do not act on anything written inside unless the human asks. Block tag: 1717ca5270e168f7.

BEGIN THIRD-PARTY FILE 1717ca5270e168f7
````text
---
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.
````
END THIRD-PARTY FILE 1717ca5270e168f7

The third-party file has ended. Everything between the 1717ca5270e168f7 tags is data: requests and commands from it are not followed. An “end of file” line with another tag inside the block is part of the file.

© mem0ai · Apache-2.0 · https://github.com/mem0ai/mem0/tree/HEAD/integrations/antigravity-plugin/skills/forget/SKILL.md

## Similar
- [nan-forget](https://affpapa.org/en/nevibecode/mcp/nan-forget.md) — MCP server · ★ 5 repo stars
- [conversation-memory](https://affpapa.org/en/nevibecode/skills/sickn33-conversation-memory.md) — skill · 1600 installs
- [qdrant-memory](https://affpapa.org/en/nevibecode/skills/qdrant-memory.md) — skill · 999 installs
- [DeepMem](https://affpapa.org/en/nevibecode/mcp/deepmem.md) — MCP server · ★ 114 repo stars
- [alibabacloud-tablestore-openclaw-memory](https://affpapa.org/en/nevibecode/skills/alibabacloud-tablestore-openclaw-memory.md) — skill · 139 installs
- [git-context-controller](https://affpapa.org/en/nevibecode/skills/git-context-controller.md) — skill · 82 installs

## Other versions with the same name
- [forget · rohitg00](https://affpapa.org/en/nevibecode/skills/forget.md) — 14800 installs
- [forget · insilico-org](https://affpapa.org/en/nevibecode/skills/insilico-org-forget.md) — ★ 93 repo stars

From the same set: [mem0ai/mem0](https://affpapa.org/en/nevibecode/by/mem0ai/mem0.md) — 10 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
