Answer: Run `claude purge` to delete the state Claude Code holds for one project. You can also delete any of the application-data paths yourself, apart from the state files to keep. Status: Confirmed Entry: tool/claude-code/privacy-and-data/clear-local-data Revision: 6 Digest: sha256:3c992e3973611e83 (changes whenever the content changes) Timeline: Created: 2026-11-13T02:27:55Z Last changed: 2026-11-20T12:18:54Z (files to keep: — → ~/.claude.json) Last verified: 2026-11-20T12:18:54Z Next check: 2026-11-21T12:18:54Z Check interval: Daily Expected change: No fixed schedule Data: Field | Value | Source | As of command | claude purge | [1] | 2026-11-20 preview option | --dry-run | [1] | 2026-11-20 skip confirmation option | --yes | [1] | 2026-11-20 purge all option | --all | [1] | 2026-11-20 previous command name | claude project purge | [1] | 2026-11-20 files to keep | ~/.claude.json | [1] | 2026-11-20 Sources: [1] Anthropic. "Explore the .claude directory". https://code.claude.com/docs/en/claude-directory.md Role: primary. Accessed: 2026-11-20T12:18:54Z Quote: "Run `claude purge` to delete the state Claude Code holds for one project." (Supports: command) Quote: "claude purge ~/work/my-repo --dry-run" (Supports: preview option) Quote: "claude purge ~/work/my-repo --yes" (Supports: skip confirmation option) Quote: "Pass `--all` instead of a path to purge state for every project at once" (Supports: purge all option) Quote: "Before v2.1.288, the command was `claude project purge`." (Supports: previous command name) Quote: "Don't delete `~/.claude.json`, `~/.claude/settings.json`, or `~/.claude/plugins/`" (Supports: files to keep) Published: 2026-11-20T02:54:41Z Snapshot SHA-256: 85ffec16f2f0e886cd77027c75469ba0752174160fe95a0acc075d585dbbe81d (captured 2026-11-20T12:18:53Z) Verification: Method: Automated extraction from [1] with deepseek-flash (JSON output, thinking disabled). Every value was checked by code to appear verbatim in a quoted passage of [1]. Cross-check: not-available at 2026-11-20T12:18:54Z. No independent second source is configured for this entry Last successful check: 2026-11-20T12:18:54Z Last attempt: 2026-11-20T12:18:54Z Notes and limitations: Extracted automatically from a single official source (section "Clear local data"). Related: https://latestn.com/tool/claude-code/privacy-and-data/code-review-data-access What can a Claude Code Code Review access during a review? https://latestn.com/tool/claude-code/privacy-and-data/control-sensitive-data-exports How do I control sensitive data in Claude Agent SDK OpenTelemetry exports? https://latestn.com/tool/claude-code/privacy-and-data/data-training-commercial-terms Does Anthropic train generative models on code or prompts sent to Claude Code under commercial terms like Team, Enterprise, or API? https://latestn.com/tool/claude-code/pricing-and-limits/websearch-session-limit What is the session search limit for the WebSearch tool in Claude Code? https://latestn.com/tool/claude-code/pricing-and-limits/workflow-behavior-limits What are the behavior and limits of a workflow run in Claude Code? https://latestn.com/tool/claude-code/privacy-and-data/checkpoint-snapshot-retention How long does Claude Code keep checkpoint file snapshots before they are deleted? https://latestn.com/tool/ All entries in AI tools Change log: Time | Event | Change | Source 2026-11-20T12:18:54Z | changed | files to keep: — → ~/.claude.json | [1] 2026-11-20T12:18:54Z | changed | purge all option: — → --all | [1] 2026-11-20T12:18:54Z | changed | preview option: — → --dry-run | [1] 2026-11-20T12:18:54Z | changed | all projects option: --all → — | [1] 2026-11-20T12:18:54Z | changed | dry-run option: --dry-run → — | [1] 2026-11-20T12:18:54Z | changed | confirmation behavior: asks for confirmation → — | [1] 2026-11-19T12:14:36Z | changed | all projects option: — → --all | [1] 2026-11-19T12:14:36Z | changed | skip confirmation option: — → --yes | [1] 2026-11-19T12:14:36Z | changed | dry-run option: — → --dry-run | [1] 2026-11-19T12:14:36Z | changed | all projects flag: --all → — | [1] 2026-11-19T12:14:36Z | changed | skip confirmation flag: --yes → — | [1] 2026-11-19T12:14:36Z | changed | dry-run flag: --dry-run → — | [1] 2026-11-19T12:14:36Z | changed | version threshold: v2.1.288 → — | [1] 2026-11-19T12:14:36Z | changed | confirmation behavior: The command prints the full deletion plan and asks for confirmation before removing anything. → asks for confirmation | [1] 2026-11-17T12:23:35Z | changed | dry-run flag: — → --dry-run | [1] 2026-11-17T12:23:35Z | changed | version threshold: — → v2.1.288 | [1] 2026-11-17T12:23:35Z | changed | previous command name: — → claude project purge | [1] 2026-11-17T12:23:35Z | changed | dry run flag: --dry-run → — | [1] 2026-11-17T12:23:35Z | changed | previous command: claude project purge → — | [1] 2026-11-17T12:23:35Z | changed | confirmation behavior: asks for confirmation before removing anything → The command prints the full deletion plan and asks for confirmation before removing anything. | [1] 2026-11-14T12:14:40Z | changed | all projects flag: — → --all | [1] 2026-11-14T12:14:40Z | changed | skip confirmation flag: — → --yes | [1] 2026-11-14T12:14:40Z | changed | dry run flag: — → --dry-run | [1] 2026-11-14T12:14:40Z | changed | skip confirmation option: --yes → — | [1] 2026-11-14T12:14:40Z | changed | all projects option: --all → — | [1] 2026-11-14T12:14:40Z | changed | version: v2.1.288 → — | [1] 2026-11-14T12:14:40Z | changed | confirmation behavior: The command prints the full deletion plan and asks for confirmation before removing anything. → asks for confirmation before removing anything | [1] 2026-11-13T03:03:34Z | changed | version: — → v2.1.288 | [1] 2026-11-13T03:03:34Z | changed | confirmation behavior: — → The command prints the full deletion plan and asks for confirmation before removing anything. | [1] 2026-11-13T03:03:34Z | changed | interactive option: -i → — | [1] 2026-11-13T03:03:34Z | changed | dry run option: --dry-run → — | [1] 2026-11-13T02:27:55Z | added | Entry created | — Changes for this entry as a feed: https://latestn.com/tool/claude-code/privacy-and-data/clear-local-data/latest Challenge this entry: Open challenges: None How: If a value here is wrong or out of date, send what is wrong and a link to evidence. Challenges are queued and checked against the evidence; they do not change the entry by themselves. If the entry changes as a result, the change log says so. Form: https://latestn.com/dispute/tool/claude-code/privacy-and-data/clear-local-data POST: https://latestn.com/dispute/tool/claude-code/privacy-and-data/clear-local-data with claim, evidence_url, and optionally field and contact (form-encoded or JSON) GET: https://latestn.com/dispute/tool/claude-code/privacy-and-data/clear-local-data?claim={what is wrong}&evidence_url={link} How to cite: LatestN. (2026). How do I clear local Claude Code application data? Revision 6, last verified 2026-11-20T12:18:54Z. https://latestn.com/tool/claude-code/privacy-and-data/clear-local-data (accessed 2026-11-21T10:00:08Z). @misc{LatestN_tool_claude_code_privacy_and_data_clear_local_data_r6, title = {How do I clear local Claude Code application data?}, author = {{LatestN}}, year = {2026}, howpublished = {\url{https://latestn.com/tool/claude-code/privacy-and-data/clear-local-data}}, note = {Revision 6; digest sha256:3c992e3973611e83; last verified 2026-11-20T12:18:54Z; accessed 2026-11-21T10:00:08Z} } Reuse: License: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/) Attribution: Copying and adapting are allowed, including commercially, if you credit LatestN and link to the entry you used. Each entry ends with a ready-made citation. URL: https://latestn.com/tool/claude-code/privacy-and-data/clear-local-data