Skip to content

Command reference

claude project purge[path]

Deletes all local Claude Code state for a project: transcripts, task lists, debug logs, file-edit history, prompt history, and the project's entry in ~/.claude.json.

Terminal commandsSession and conversationcurrent

What the documentation does not say

This is the only command on this page that destroys work you cannot get back, and --dry-run is the only way to see what goes before it goes. Without a path it opens a picker, which is where the wrong project gets chosen.

Arguments
[path]