Follow Discord
Sweep 03 Dec 2026 · 19:13Z Build v2.1.336 553 read Stable v2.1.332 Latest v2.1.336 Next v2.1.336 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.334 ·

Old session cleanup can now run even when user settings are turned off

Deleting old sessions can now be forced to run even when --setting-sources leaves out your user settings

Under the hood Internal Changes
JSON All of v2.1.334
Under the hoodTier: how much it should matter to you
2Useful: my rating, 1 to 5
2Signal: worth watching, 1 to 5
ElsewhereArea: what it touches
Internal ChangesKind: in v2.1.334,
Internal ChangesSection of the release

Unclear It is not clear when Claude Code forces the cleanup, so whether sessions get deleted in your setup is unknown.

What

Claude Code deletes old sessions after a set period. If you started it with --setting-sources and left out user settings, and no other source set cleanupPeriodDays, this cleanup was always skipped. The cleanup can now be told to run anyway.

Why

It changes when old sessions may be deleted, even in a run where user settings were not loaded.

Read from
Since it was published

The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.

Added since A small documentation edit on User identity and local data touched a line naming cleanupPeriodDays after this was published. * **By Claude Code**: [Claude Code's own cleanup](https://code.claude.com/docs/en/claude-directory#cleaned-up-automatically) deletes some of its older files, such as checkpoints and large tool outputs. If [Claude Code managed settings](htt… third-party/claude-desktop/data-storage see the edit
Confirmed since Anthropic's documentation has since written up cleanupPeriodDays, on Deploy managed settings. | Other strings, numbers, and Booleans | Takes the value from the highest-ranked source that sets it | `model`, `cleanupPeriodDays` | managed-settings see the edit
How sure we are
Something disagreesSomething we can check disagrees with this entry, or the writer said they could not settle it.
The writer flagged doubtIt is not clear when Claude Code forces the cleanup, so whether sessions get deleted in your setup is unknown.
Anthropic's documentation agreesAnthropic's documentation has since written up cleanupPeriodDays, on Deploy managed settings.

See this entry in the whole of v2.1.334 →

Feedback