Rank #4 of 64·Data loss·13 Nov 2026·Claude Code (Anthropic), CLI 2.1.322-2.1.325 on macOS
Claude Code's cleanup deleted weeks of session transcripts it should have kept, a user says
As reported This one rests on public reports we couldn’t independently confirm. We’ll update it if the facts change.
“Thirty-day retention, roughly three-week memory.”
- cleanupPeriodDays was never set, so the 30-day default should have applied
- Every interactive transcript deleted, including sessions 1-3 weeks old
- Claude Code's last-cleanup marker matches when the folders changed: 13 Nov, 13:37 UTC
- Only transcript files went; tool results, subagent and file-history folders survived
- Scripted claude -p transcripts survived back to 15 Oct
- No Time Machine backup; several weeks of sessions can't be resumed
- As reported: one user's account, not independently confirmed
Claude Code is supposed to keep your session transcripts for 30 days. One Mac user says a single cleanup pass quietly deleted weeks of them, and claude --resume now comes up empty.
What happened
The user had never set the retention setting, cleanupPeriodDays, anywhere: not in user, project, local or managed settings, and not in the environment. So the 30-day default should have applied. Instead, after a laptop restart on 14 November, every interactive transcript file in their Claude Code projects folder was gone, including sessions from the last one to three weeks. One session had been writing until the night before.
The damage
The evidence points at Claude Code's own cleanup. Its last-cleanup marker reads 13 November, 13:37 UTC, the exact moment the projects and file-history folders were last changed. Several project folders share identical timestamps to the second, which looks like one batch deletion. Only the transcript files went; each session's tool results, subagent and file-history folders survived. Transcripts from scripted claude -p runs survived too, back to 15 October. The user ruled out cleaner apps, hooks, cron and launchd jobs, and has no Time Machine backup. Several weeks of work can no longer be resumed.
How it was caught, and what happened next
The report lists versions 2.1.322 to 2.1.325 on macOS. The issue is open with a data-loss label, and when we checked there was no public reply from Anthropic.
If your agent's history matters, back it up yourself. A retention default is a promise, not a backup.

