From agentmemory
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.
npx claudepluginhub rohitg00/agentmemory --plugin agentmemoryThis skill uses the workspace's default tool permissions.
The user wants to remove data from agentmemory: $ARGUMENTS
Supersedes memory entries matching a query in CLAUDE.local.md, registers/*.md, and daily/*.md. Preserves history without deletion, annotates as outdated, updates metadata.json.
Audits, classifies, and selectively prunes Claude Code agent memories by type, age, access frequency, staleness, and fidelity using decision trees and audit trails. Use when memory grows large, project state shifts, or retrieval degrades.
Searches agentmemory for past observations, sessions, and learnings matching a query. Groups results by session, shows type/title/narrative, highlights importance >=7. Triggers on 'recall', 'remember', or prior context needs.
Share bugs, ideas, or general feedback.
The user wants to remove data from agentmemory: $ARGUMENTS
IMPORTANT: This is a destructive operation. Always confirm with the user before deleting.
Steps:
First, search for matching observations:
curl -s -H "Content-Type: application/json" \
-H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" \
-X POST "http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/search" \
-d '{"query": "<SEARCH_TERM>", "limit": 20}'
Show the user what was found and ask for confirmation
If confirmed, delete via:
curl -s -H "Content-Type: application/json" \
-H "Authorization: Bearer ${AGENTMEMORY_SECRET:-}" \
-X POST "http://${AGENTMEMORY_URL:-localhost:3111}/agentmemory/forget" \
-d '{"sessionId": "<ID>"}' # or {"observationIds": ["id1", "id2"]}
Confirm deletion to the user
Never delete without explicit user confirmation.