June 30, 2026
Delete, deny, dramatic sigh
Beware, Claude Code deletes >30 day old transcripts. Anthropic won't fix it
Users say Claude Code is quietly trashing old chats, and the comments are a full meltdown
TLDR: Users say Claude Code automatically deletes chat history older than 30 days with no warning, and one claims it erased a valuable 16-hour work session. The comments are split between outrage over silent data loss and eye-rolling from skeptics who say this may be a configurable feature, not a scandal.
The real scandal here isn’t just that Claude Code reportedly wipes chat transcripts after 30 days by default — it’s that users say it does it silently, with no warning, no recycle bin, and no easy way back. One user says they lost a 16-hour work session building an internal tool, then had to make a recovery tool… only to watch that project’s chat get deleted too. That detail alone had the community doing the internet equivalent of clutching pearls and yelling, “You cannot be serious.” The original complaint frames these chat logs as a kind of personal work record — the user’s own ideas, prompts, and problem-solving history — which is why some commenters are treating this less like a bug and more like a digital betrayal.
But the comment section is where the popcorn really starts flying. Some users are furious that a paid coding assistant would erase valuable history at all, with one person basically saying, “SQLite could do this trivially, this is wild,” which is a nerdy way of saying: how is this still happening? Another commenter shared their homespun survival tactic: train Claude to keep notes in project files because the built-in memory is too flaky — a workaround that feels equal parts clever and deeply cursed. Still, not everyone is joining the pitchfork parade. A few pushed back on the article’s tone, calling “Anthropic won’t fix it” sensational for a young issue buried in a backlog of thousands. Others went even further: if it’s a configurable cleanup setting, is this actually a bug… or just a feature people hate? That split — silent data loss vs. overblown outrage — is the drama keeping this story alive.
Key Points
- •The article says Claude Code deletes transcript files older than 30 days by default on startup when `cleanupPeriodDays` is not set.
- •The author reports on-disk evidence from 2026-05-30 showing the oldest surviving transcript was dated 2026-04-30, with older sessions removed.
- •The cited documentation in `claude-directory.md` states files are deleted on startup once older than `cleanupPeriodDays`, and the article says no warning or recovery mechanism is described.
- •The article claims that increasing `cleanupPeriodDays` may not reliably prevent deletion, referencing issue #62272 and deletions observed after restart or update.
- •The author recommends warning or consent before cleanup, recoverable trash instead of hard delete, reliable retention settings, session pinning, optional export, and more visible documentation.