AI Engineer Guide

How to disable Auto-Delete of Chat History in Claude Code

Apparently, Claude Code auto deletes chat history/session after 30 days by default.

However, you can configure this behaviour by setting cleanupPeriodDays in your ~/.claude/settings.json config file.

{
  "cleanupPeriodDays": 99999
}

There is no boolean option to disable it but by setting the above day, we delay it by 274 years ๐Ÿ˜…

Reference

#Claude-Code

Stay Updated

Get the latest AI engineering insights delivered to your inbox.

No spam. Unsubscribe at any time.