claude-forget
Make Claude Code forget a folder.
Removes every trace Claude Code keeps about a project on your computer: transcripts, prompt history, caches, config backups and the files it leaves in the folder. Nothing gets installed, and the launcher deletes itself when it's done.
$ curl -fsSL https://ccc.hajimi.download | shPS> irm https://ccc.hajimi.download | iexCopy includes a leading space, which keeps the command out of your shell history in bash, and in zsh with HIST_IGNORE_SPACE. Either way, the launcher removes it from your history files when it exits.
How it works
01Pick foldersA list of every folder Claude Code remembers, with session counts and sizes.
02Review the planSee exactly what gets deleted and what gets edited before anything changes.
03ForgetConfirm once. The program and its temporary folder are removed afterwards.
What it removes
- SessionsTranscripts, subagent runs, tool output, file history, tasks, todos, uploads, debug logs.
- Project dataThe folder's entry under
~/.claude/projects, project memory included. - Shared filesOnly this folder's lines in
history.jsonland its entries in~/.claude.json. - Backups & snapshotsCopies of
.claude.jsonin backups, and shell snapshots that mention the folder. - Caches & scratchMCP logs, scratch directories, pasted-text cache nothing else uses.
- Inside the folder
.claude/andCLAUDE.local.md. Git worktrees are unhooked first.
What stays
- Committed files
CLAUDE.md,.mcp.jsonand anything git tracks, unless you turn that on. - Other foldersEvery other project, your settings, skills, plugins and memory.
- Things it can't reachGit history, data on Anthropic's servers, other computers.
Stays out of your way
- Runs from a temporary folder that's deleted on exit, even if you press Ctrl-C.
- The program's SHA-256 is pinned in the launcher and checked before it runs.
- Needs Python 3.10+. Without it, a standalone Python is fetched into the same temporary folder and deleted with it.
- Edits shared files atomically, under the same lock Claude Code uses, and never leaves
.bakfiles behind. - Refuses to touch a folder while Claude Code is running in it, unless you say so.