Agent skill
forget
Delete specific observations or sessions from agentmemory. Use when user says "forget this", "delete memory", or wants to remove specific data for privacy.
Install this agent skill to your Project
npx add-skill https://github.com/rohitg00/agentmemory/tree/main/plugin/skills/forget
SKILL.md
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:
bashcurl -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:
bashcurl -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.
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
recall
Search agentmemory for past observations, sessions, and learnings about a topic. Use when the user says "recall", "remember", "what did we do", or needs context from past sessions.
session-history
Show what happened in recent past sessions on this project. Use when user asks "what did we do last time", "session history", "past sessions", or wants an overview of previous work.
remember
Explicitly save an insight, decision, or learning to agentmemory's long-term storage. Use when the user says "remember this", "save this", or wants to preserve knowledge for future sessions.
k8s-multicluster
Manage multiple Kubernetes clusters, switch contexts, and perform cross-cluster operations. Use when working with multiple clusters, comparing environments, or managing cluster lifecycle.
k8s-incident
Respond to Kubernetes incidents with runbooks and diagnostics. Use for outages, pod failures, node issues, network problems, and emergency response.
k8s-gitops
Manage GitOps workflows with Flux and ArgoCD. Use for sync status, reconciliation, app management, source management, and GitOps troubleshooting.
Didn't find tool you were looking for?