Claude Code deletes your old session logs after 30 days by default | Bryce Watson
The cleanupPeriodDays default is 30 days, so Claude Code deletes session transcripts older than that in a sweep after each session starts. Set it higher in ~/.claude/settings.json to stop the deletions. What the setting covers, what was already gone on my machine, and why raising it can't recover the past.
Bryce Watson
Topics: Code Assistants
Entities: Code AssistantsClaudeClaude Code