⌨️claude purge Command
Also known as claude purge, Clear local data
It deletes what Claude Code keeps for one project.
Think of it like
It is like you clear your desk at the end of the year. Every page comes off.
Example
Lucy finishes a client project and wants no trace of its chats on her laptop. She runs claude purge with --dry-run, reads the list, then runs it again for real.
Why it matters
Old chats can hold code and secrets. This removes them on your schedule, not when they age out.
Definition
Example code
bash
claude purge ~/work/repo --dry-runCommon mistake
Key takeaways
- 1One project. Or --all.
- 2Local state only. Not your code.
- 3--dry-run first. See the list.