{"version":"2.1.334","anchor":"retention-cleanup-can-be-forced-past-setting-sources","canonical_anchor":"retention-cleanup-can-be-forced-past-setting-sources","heading":"Old session cleanup can now run even when user settings are turned off","tier":"internal","area":"Elsewhere","scope":"individual","heads_up":false,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334\/e\/retention-cleanup-can-be-forced-past-setting-sources","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.334","markdown":"### Old session cleanup can now run even when user settings are turned off\n\nDeleting old sessions can now be forced to run even when --setting-sources leaves out your user settings\n\n**Unclear.** It is not clear when Claude Code forces the cleanup, so whether sessions get deleted in your setup is unknown.\n\n**What**\n\nClaude 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.\n\n**Why**\n\nIt changes when old sessions may be deleted, even in a run where user settings were not loaded.\n\n- Area: Elsewhere\n- Names: `--setting-sources`, `cleanupPeriodDays`\n- Tier: Under the hood\n- Useful: 2\/5\n- Signal: 2\/5\n- Scope: individual\n- Heads-up: no"}