Skip to content
SkimNews
SponsoredApplysparrowPaste a job link, get a resume written for that job.Try it free →
Tech & AI

Claude Code Auto-Deletes Local Sessions After 30 Days

The 30-Second Skim7 points

  • What happenedAnthropic's Claude Code data policies show local session transcripts cached in plaintext for 30 days by default, while consumer users who opt into model training face 5-year retention, and /feedback submissions persist for the same span.
  • Key facts & numbersAnthropic stores Claude Code session transcripts locally in plaintext under ~/.claude/projects/ for 30 days by default to enable session resumption, with the period adjustable via the cleanupPeriodDays setting. Consumer users on Free, Pro, and Max plans who don't allow data for model improvement receive a 30-day retention period; those who opt in are kept for 5 years, while Team and Enterprise accounts aren't used to train models by default. /feedback command transcripts are retained for 5 years; /bug and /share submit through the same path, and users can choose to include sessions from the current project over the last 24 hours or 7 days.
  • What happens nextHeadline buries: opt-in = 5-year retention, /feedback = 5 years, and Bedrock/Google Cloud/Microsoft Foundry feedback never leaves the machine by default.
  • Anthropic stores Claude Code session transcripts locally in plaintext under ~/.claude/projects/ for 30 days by default to enable session resumption, with the period adjustable via the cleanupPeriodDays setting.
  • Consumer users on Free, Pro, and Max plans who don't allow data for model improvement receive a 30-day retention period; those who opt in are kept for 5 years, while Team and Enterprise accounts aren't used to train models by default.
  • /feedback command transcripts are retained for 5 years; /bug and /share submit through the same path, and users can choose to include sessions from the current project over the last 24 hours or 7 days.
  • Session quality survey follow-ups that share transcripts retain them for up to 6 months, and when uploaded include conversation transcripts, subagent transcripts, and the raw session log file from disk, with known API key and token patterns redacted before upload.

Why It Matters

The 30-day local retention default is the most user-facing detail, but the real divergence is between consumer tiers: opting into model training extends retention from 30 days to 5 years. Developers running Claude Code through Bedrock, Google Cloud Agent Platform, or Microsoft Foundry get a meaningfully different posture — default-off telemetry and locally-staged feedback bundles — which changes how security-sensitive teams should evaluate provider choice.

Sources Cited

Related Coverage

The day’s news in one short email, every morning.

Free. One email a day. Unsubscribe in one click.