PulseAugur
EN
LIVE 20:10:45

Claude Code auto-deletes sessions; users can adjust settings or use search tools

Claude Code, a tool for developers, automatically deletes old sessions after 30 days by default, with no warning or recycle bin. Users can prevent this by increasing the `cleanupPeriodDays` setting in `~/.claude/settings.json` to a large number like 3650. Additionally, the `/resume` command may not display all sessions, only showing those from the current project and matching titles rather than content. For more robust searching of session content, users can employ `grep` on the session files or use the open-source CLI tool `ccback`. AI

IMPACT Provides guidance on managing AI development tool sessions and data persistence.

RANK_REASON Article details a feature and potential issues of a specific software tool, offering solutions.

Read on dev.to — Claude Code tag →

AI-generated summary · Google Gemini · from 1 sources. How we write summaries →

Claude Code auto-deletes sessions; users can adjust settings or use search tools

How we ranked this

Signal score
36 / 100
Composite score across the factors below. Higher = stronger signal that this story matters right now.
Newsworthiness bucket
Tool
Article details a feature and potential issues of a specific software tool, offering solutions.
Source corroboration
Single-source cluster
Only one publisher covered this so far. Single-source stories can still rank when the publisher is high-authority, but they lack cross-source corroboration.
Topics
product, infra
Editorial topic classification. Feeds into how the story surfaces on /topic/<slug> hub pages and into the per-entity coverage mix.
AI-industry relevance
High
Clearly on-topic for AI-industry coverage.
Story freshness
Breaking (< 6h)
Fresh story with cross-source coverage still developing. Ranking may shift as more sources report.

Full methodology in our editorial standards.

COVERAGE [1]

  1. dev.to — Claude Code tag TIER_1 English(EN) · Aditya Ghadge ·

    Claude Code sessions disappeared? It deletes them after 30 days

    <p>if an old claude code session is missing from <code>/resume</code>, there are two possible reasons. it was deleted, or it's still there and the picker just can't find it</p> <h2> 1. claude code deletes old sessions after 30 days </h2> <p>claude code saves every session as a <c…