mem0-forget

Deletes mem0 memories by search query or memory ID with confirmation prompts.

Updated Jun 29, 2026
One-click install
npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill mem0-forget-nhatnguyen1122
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mem0-forget
Source: https://github.com/nhatnguyen1122/Agent-Memory-Eval/tree/main/mem0/integrations/mem0-plugin/.opencode-plugin/opencode-skills/mem0-forget
Command: npx skills add https://github.com/nhatnguyen1122/Agent-Memory-Eval --skill mem0-forget-nhatnguyen1122

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Removing outdated, incorrect, or sensitive memories from a mem0 store is risky without safeguards. This Skill locates the right memories and enforces confirmation before any destructive deletion. ## Core Features & Use Cases - Search-Based Deletion: Find memories by natural language query scoped to the active user and project, then select which ones to remove. - Direct ID Deletion: Verify a memory by its ID, preview its content, and delete it after confirmation. - Session Undo: Roll back memories added in the current session using the MEM0_SESSION_ID environment variable. - Use Case: After an experiment stores incorrect architecture decisions, run a search for the topic, review the numbered matches, and delete only the confirmed entries. ## Quick Start Ask the assistant to forget memories about a topic, for example: delete the memories about the old authentication module decisions.

Frequently Asked Questions about mem0-forget

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete memories from mem0 by search query?

Provide a search query and the skill calls search_memories filtered by your user ID and project ID, returning up to 10 matches. You then confirm which numbered results to delete, and each confirmed entry is removed via delete_memory.

How do I undo recently added memories in mem0?

Say 'undo last N memories' and the skill reads the MEM0_SESSION_ID environment variable to find memories tagged with the current session. It sorts them by creation time, shows the most recent entries, and deletes them after your confirmation.

Can I delete a mem0 memory by its ID?

Yes, pass the memory ID directly and the skill calls get_memory to verify it exists and shows a content preview with its creation date. Deletion only proceeds after you confirm the prompt.

Does mem0 deletion happen without confirmation?

No, the skill never deletes without explicit confirmation because deletion is destructive. You must enter item numbers, 'all', or answer yes to the confirmation prompt before any delete_memory call runs.

What happens if no recent memories are found to undo?

If MEM0_SESSION_ID is unset or the session-filtered search returns nothing, the skill reports that no recent memory IDs were tracked. It suggests browsing recent memories or searching by query instead.