# Is it safe to delete ~/.claude/projects (Claude Code history)?

- URL: https://moreroom.app/folders/ai-claude-code
- Item: Claude Code history
- Location: `*.jsonl`
- Verdict: Review first — Might hold something you care about. Look inside before removing it.
- Comes back on its own: no
- Typical size: 10 MB–5 GB
- Source: MoreRoom rules catalogue (2026-10-17), by Yando Pte. Ltd.

## What is it?

Claude Code, Anthropic’s command-line coding agent, saves each session as a transcript file in `~/.claude/projects`, in one folder per project directory, along with tool results and subagent transcripts. Long sessions can make these folders hundreds of MB.

## What happens if you delete it?

No. A deleted session cannot be resumed with `claude --resume` and its history is gone. Your code and your `CLAUDE.md` files are not stored here.

## How to remove it properly

Claude Code already deletes transcripts older than 30 days by default; you can change that with the `cleanupPeriodDays` setting in `~/.claude/settings.json`. To remove a project’s history by hand, quit Claude Code and move that project’s folder to the Trash.

## Before you delete it

Project folders can also contain Claude’s auto memory for that project; check for a `memory` folder you want to keep.
