Loading...
Loading...
Deletes memories by search query or memory ID with confirmation before removal. Use when removing outdated decisions, incorrect memories, sensitive data, or cleaning up after experiments. Also handles undo of recent additions.
npx skill4agent add mem0ai/mem0 forget/mem0:forget auth module decisions/mem0:forget <memory_id>get_memoryFound: "<memory content first 120 chars>" (created <date>)search_memoriesquery=<user's query>filters={"AND": [{"user_id": "<active_user_id>"}, {"app_id": "<project_id>"}]}top_k=10Found <N> memories matching "<query>":
1. <content, 120 chars> (type: <type>, created: <date>) [ID: <short_id>]
2. ...delete_memoryDeleted <N> memories.SCRIPT_DIR="${CLAUDE_PLUGIN_ROOT:-${CODEX_PLUGIN_ROOT:-${CURSOR_PLUGIN_ROOT:-}}}/scripts"
python3 "$SCRIPT_DIR/session_stats.py" peekrecent_idsidcategorytsdelete_memoryrecent_ids/mem0:tour/mem0:forget <search query>