From claude-memory
This skill should be used when the user wants to forget something, delete memories, remove observations, clear outdated information, or reduce memory importance. Trigger phrases include "forget about", "delete memories", "remove observations", "clear memory of", "forget what we learned about".
How this skill is triggered — by the user, by Claude, or both
Slash command
/claude-memory:memory-forgetThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Find and remove or diminish specific observations from memory.
Find and remove or diminish specific observations from memory.
Always preview first — never delete without showing what will be affected.
~/.config/claude-memory/.venv/bin/python3 ${CLAUDE_PLUGIN_ROOT}/scripts/forget.py --query "{{query}}" --preview 2>/dev/null || python3 ${CLAUDE_PLUGIN_ROOT}/scripts/forget.py --query "{{query}}" --preview
This outputs JSON with matching observations:
matches — Array of observations matching the query (id, content, priority, importance, topics, created_at)match_count — Number of matches foundconsolidation_links — Consolidation IDs that reference any matched observations (these observations contributed to synthesized insights)Present the matches clearly to the user, highlighting:
Before proceeding, verify:
{{query}} is *, everything, all, or similar broad terms, warn the user that this will affect ALL observations and require explicit double confirmation.Only after the user explicitly confirms, execute the forget operation:
Soft mode (default — reduces importance so observations are pruned in the next consolidation cycle):
~/.config/claude-memory/.venv/bin/python3 ${CLAUDE_PLUGIN_ROOT}/scripts/forget.py --query "{{query}}" --mode soft --confirm 2>/dev/null || python3 ${CLAUDE_PLUGIN_ROOT}/scripts/forget.py --query "{{query}}" --mode soft --confirm
Hard mode (immediate deletion — irreversible):
~/.config/claude-memory/.venv/bin/python3 ${CLAUDE_PLUGIN_ROOT}/scripts/forget.py --query "{{query}}" --mode hard --confirm 2>/dev/null || python3 ${CLAUDE_PLUGIN_ROOT}/scripts/forget.py --query "{{query}}" --mode hard --confirm
--confirm flag — the script will refuse to modify data without itnpx claudepluginhub seangsisg/deja-claudeAudits and selectively forgets stored Claude Code memories. Use when memory is large/uncurated, project state has shifted, or retrieval quality degraded.
Selectively and reversibly forget stored memories/concepts by query or date, soft-deactivating them from retrieval without deletion. Useful for privacy or decluttering the kongcode graph.
Deletes specific observations or sessions from agentmemory via API after user confirmation. Use for privacy requests like 'forget this', 'delete memory', or targeted data removal.