agentleFS
ThisisYoYoDevThisisYoYoDev/claude-rag/skills/forget/SKILL.md

forget

Skill9 starsChanged 8 months agoMITView on GitHub

Soft-delete data from the RAG database — by session, project, or all. Data can be restored later.

7 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use remember and recall.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • LangChainSkill

    remember

    Review the current conversation and capture valuable knowledge — best practices, coding conventions, architecture decisions, workflows, and user feedback — into persistent memory (AGENTS.md) or reusable skills. Use when the user says: (1) remember this, (2) save what we learned, (3) update memory, (4) capture learnings.

    Also in 3 projects that use this

  • termdockSkill

    recall

    Retrieves cross-session memories about past decisions, lessons, and patterns. Use when user asks about prior work, past decisions, or mentions a feature. Triggers include check memory, what did we decide, how did we solve.

    Also in 3 projects that use this

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 3 are distinctive, and 0 are very specific to this project.

  • 0

    Common

    Most of the 7 edited versions we read keep these.

  • 3

    Distinctive

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Delete data from the RAG database.

    line 11
  2. Distinctive:

    Read the plugin config:

    line 15
  3. Distinctive:

    If confirmed, list all projects and delete each:

    line 32

“Common” is measured: kept by at least 6 in 10 of the 7 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

RAG Forget (Soft Delete)

Delete data from the RAG database. Data is soft-deleted and can be restored.

Instructions

  1. Read the plugin config:
    cat ~/.claude/plugins/claude-rag/config.json 2>/dev/null || echo '{"connection":{"endpoint":"https://api.clauderag.io"}}'
  2. Determine scope from "$ARGUMENTS":

No argument → Ask the user

Use AskUserQuestion:

  • question: "What do you want to forget?"
  • options: ["A specific session", "An entire project", "Everything"]

"all" → Confirm then delete all projects

Always confirm first with AskUserQuestion:

  • question: "This will soft-delete ALL your RAG data. Are you sure?"
  • options: ["Yes, delete everything", "No, cancel"]

If confirmed, list all projects and delete each:

curl -s <endpoint>/api/v1/projects
# For each project:
curl -s -X DELETE <endpoint>/api/v1/projects/<id>

Session ID (UUID) → Delete that session

curl -s -X DELETE <endpoint>/api/v1/sessions/<id>

Project name → Find and delete project

curl -s <endpoint>/api/v1/projects
# Find matching project, then:
curl -s -X DELETE <endpoint>/api/v1/projects/<id>
  1. After deletion, show:
    • What was deleted (session name, project name, event counts)
    • Remind: "Data is soft-deleted and can be restored with /claude-rag:restore"
  2. Never hard-delete. Always use the DELETE endpoints which perform soft-delete.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.