# Claude Code deletes session transcripts after 30 days by default

> Original title: this bit me. was planning to open source my transcripts researching latent basemap since July but didn't realize this was happening 😭 we...

- Source: Ian Johnson
- Published: 2026-11-11T13:04:57.000Z
- Bad Influence: https://badinfluence.news/items/e5fo0zx1lht7rz1i58nm8ipyf
- Original: https://x.com/enjalot/status/2120503045515571275

## Summary

Ian Johnson says he lost transcripts he planned to open source after Claude Code's default setting deleted sessions after 30 days. He says some of the same work survives in Codex. Migtissera advises setting "cleanupPeriodDays" to 36500 in ~/.claude/settings.json to keep Claude Code sessions.

## Post

this bit me. was planning to open source my transcripts researching latent basemap since July but didn't realize this was happening 😭 well a bunch of it was in codex too so I still have those

## Quoted post @migtissera

> ‼️ If you use Claude Code, please do the following right now. Especially if you're thinking of fine-tuning models with your session transcripts.
> 
> in ~/.claude/settings.json, add "cleanupPeriodDays": 36500.
> 
> The default deletes sessions after 30 days. I found this the hard way.

https://x.com/migtissera/status/2120005170860003520
