HeadlinesBriefing favicon HeadlinesBriefing.com

Claude Code Deletes Context History After 30 Days

Hacker News •
×

Claude Code lets consumer users (Free, Pro, Max) decide whether their data trains future models. If opted in, data is stored for 5 years; if opted out, it is removed after 30 days. Settings can be changed anytime in claude.ai/settings/data-privacy-controls.

Commercial customers (Team, Enterprise, API, Claude Gov) follow a default 30‑day retention, but qualified accounts can enable Zero Data Retention (ZDR). ZDR is not in the standard Enterprise plan; it requires a team‑level agreement.

Feedback via /feedback, /bug, and /share is kept for 5 years, while session‑quality surveys upload transcripts only after user consent. Telemetry (latency, error reports) can be disabled with environment variables like DISABLE_TELEMETRY=1.

Locally, Claude Code stores session logs in ~/.claude/projects/ for 30 days by default, allowing resume. Users can delete sessions at any time; the event data is permanently removed for web sessions, data lives in Anthropic‑managed VMs and follows the same retention rules.