Skip to content

Delete selected agentmemory entries by ID, only after showing matches and getting explicit confirmation.

CCM score
79 of 100
skills.sh installs
14.9K
GitHub stars
30.7K
last updated
Aug 21, 2026
View on GitHub

Own this skill? Claim it

What it does

  • Covers the search-then-delete flow: memory_smart_search finds matches, the user confirms, then memory_governance_delete removes them by memory ID
  • Enforces a hard confirmation step, so nothing is deleted on silence or an assumed yes, and secret values are redacted in the preview
  • Excludes observations, whole sessions, and lessons, which need memory_lesson_delete with a lessonId instead
  • Reports deleted, not-found, and failed IDs separately, and rechecks IDs before retrying after an interrupted response

Install

$ npx -y skills add rohitg00/agentmemory --skill forget -y

Installs into .agents/skills for every agent it finds here, and .claude/skills for Claude Code.

Files

The user wants to remove data from agentmemory: $ARGUMENTS

Quick start

memory_smart_search { "query": "old api key in config", "targetLayer": "memory", "limit": 20 }

Show the matches, get a yes, then:

memory_governance_delete { "memoryIds": "abc12345,def67890", "reason": "user privacy request" }

Expected output:

Found 2 matching memories. Confirmed. Deleted 2 memories.

Why

This is destructive and irreversible. Show exactly what will be deleted and get an explicit yes before calling delete. Delete by memory ID, never a bare session.

Workflow

Details

Repository
github.com/rohitg00/agentmemory
Category
Memory & Context
First seen
Jul 14, 2026

Questions

What does the forget skill do in agentmemory?

The forget skill deletes selected memories from agentmemory after showing the matches and getting an explicit yes from the user. It is meant for requests like "forget this", "delete memory", or scrubbing specific data for privacy. Deletion is by memory ID, and the skill does not wipe whole sessions.

How do I install the forget skill?

Run npx -y skills add rohitg00/agentmemory --skill forget -y in your project. After installing, the agent can search memories and delete the ones you confirm. Deletion needs memory_smart_search and memory_governance_delete to be available.

Can forget delete a whole session or lessons?

No, this skill cannot erase a whole session or observations, and it says so before proceeding. Lessons are separate and are removed with memory_lesson_delete using a lessonId. Only selected memories found by search are deleted.

Which skills does forget work alongside in Memory & Context?

Forget ranks in the top 25 of the Memory & Context category. Its skill pair is remember, which writes memories, while forget is its undo. Recall is used first to find the exact memory ID before deleting.

More from rohitg00/agentmemory

All 15

Similar to Forget

More Memory & Context