← Back to catalog
SettingPrivacy↓ 57

7-Day Retention

Cuts how long conversation transcripts are kept down to 7 days.

Installation
npx claude-code-templates@latest --setting cleanup/retention-7-days --yes

This setting limits the retention period for conversation transcripts to just 7 days.

After that window, old history is cleaned up automatically.

It’s a way to keep less data on the machine and meet shorter privacy policies.

When to use

  • When you don’t want chat history piling up for long.
  • In environments with short data-retention rules.
  • To reduce the trail left by old sessions.

How to use

Apply the setting; if you need more history, switch to the longer-retention profile.