32 pages for cleanupperioddays.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Persist sessions to external storage
Claude Code CLI · in the page
agent-sdk/session-storage
…transcripts under `CLAUDE_CONFIG_DIR` are swept independently by the `cleanupPeriodDays` setting, following the [retention sweep rules](/docs/en/claude-directory.md#cleaned-up-automatically). A run [r…
Subagents in the SDK
Claude Code CLI · in the page
agent-sdk/subagents
…s/en/sub-agents.md#resume-subagents) for compaction behavior and the `cleanupPeriodDays` cleanup period. ## Tool restrictions Use the `tools` field to limit what a subagent can do: * **Omit `tools`…
Agent SDK reference - TypeScript
Claude Code CLI · in the page
agent-sdk/typescript
…ontrols the cleanup period. On a machine where no settings file sets `cleanupPeriodDays`, both printed lines show `undefined` for the value, which is the expected output rather than an error. ```type…
Orchestrate teams of Claude Code sessions
Claude Code CLI · in the page
agent-teams
…eps it](/docs/en/claude-directory.md#cleaned-up-automatically), set [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays). Claude Code generates both of these automatically at session…
Manage multiple agents with agent view
Claude Code CLI · in the page
agent-view
…ter prompt. When [transcript cleanup](/docs/en/settings-reference.md#cleanupperioddays) has removed a stopped session's saved conversation, Claude Code refuses to open the row: the message says there…
Claude Code changelog
Claude Code CLI · in the page
changelog
…aged mod can make an organization's setting a ceiling, including the `cleanupPeriodDays` the retention sweep uses * Changed the `/artifacts` delete confirmation to show numbered choices: 1 or Enter ke…
Checkpointing
Claude Code CLI · in the page
checkpointing
…cs/en/errors#no-files-were-restored). To keep snapshots longer, set [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays). ### Rewind and summarize Run `/rewind`, or press `Esc` twice…
Explore the .claude directory
Claude Code CLI · in the page
claude-directory
…e Code deletes the files in the paths below once they're older than [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays), as long as it can safely determine the retention period. The d…
Manage costs effectively
Claude Code CLI · in the page
costs
…rest of your session data: at startup, it removes files older than [`cleanupPeriodDays`](/docs/en/claude-directory#cleaned-up-automatically), 30 days by default. You can run `/insights` on any plan…
Data usage
Claude Code CLI · in the page
data-usage
…days by default to enable session resumption. Adjust the period with `cleanupPeriodDays`. See [application data](/docs/en/claude-directory.md#application-data) for what's stored and how to clear it.…
Set up Claude Code (local mode) for a HIPAA-ready organization
Claude Code CLI · in the page
hipaa-setup
…xxxx-xxxx-xxxx-xxxxxxxxxxxx", "allowedProviders": ["anthropic"], "cleanupPeriodDays": 30 } ``` For a fuller `managed-settings.json` with sandboxing, a network allowlist, credential protections, a…
Hooks reference
Claude Code CLI · in the page
hooks
…it. The session remains on disk until you resume it, subject to the [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) retention sweep, which deletes session files after 30 days by d…
Interactive mode
Claude Code CLI · in the page
interactive-mode
…s ones not to repeat. Claude Code deletes the file once it has gone [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) without a session reading or writing it. To clear them sooner,…
Deploy managed settings
Claude Code CLI · in the page
managed-settings
…by these rules: * **Single values**, such as `"model": "opus"` or `"cleanupPeriodDays": 7`: the later file's value replaces the earlier one * **Lists**, such as `permissions.deny` or `sandbox.networ…
How Claude remembers your project
Claude Code CLI · in the page
memory
…nvironments. Claude Code deletes old session transcripts after the [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) retention period, but excludes the memory files in the memory d…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…ocs/en/claude-directory.md#cleaned-up-automatically) older than the [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) setting. Claude Code runs the sweep in the background at most o…
Plugin loading reference
Claude Code CLI · in the page
plugins/loading
…lugins-json-could-not-be-read-and-was-rebuilt). They age out on the [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) schedule | Because `${CLAUDE_PLUGIN_ROOT}` points at a version…
Create a mod
Claude Code CLI · in the page
plugins/mods/create
…Claude Code deletes that session's mods folder once it's older than [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays). To keep the mod, copy its directory out of the mods folder to…
Draw in the interface with a mod
Claude Code CLI · in the page
plugins/mods/interface
…| Your mod deletes it, or no session reads or writes the store for [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays). The store is a key-value store, saved as a JSON file of your p…
Troubleshoot plugins
Claude Code CLI · in the page
plugins/troubleshooting
…Claude Code never reads the file back, and the file ages out on the [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) schedule. ### `install records under names that no version of…
Configure server-managed settings
Claude Code CLI · in the page
server-managed-settings
…md#keys-that-fail-closed) keep their stricter values. * An invalid `cleanupPeriodDays` or `desktopSessionCleanupPeriodDays` value stays in the cached copy and is never applied. * Claude Code applies…
Manage sessions
Claude Code CLI · in the page
sessions
…/env-vars) | Environment variable | | Change the 30-day retention | [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) | `settings.json` | | Set an age limit for [Claude Desktop and…
Claude Code settings
Claude Code CLI · in the page
settings
…| | `cleanupPeriodDays` | **Default**: `30` days, minimum `1`. Claude Code deletes [session files and other application…
Example settings files
Claude Code CLI · in the page
settings-example
…"Read(~/.zshrc)" ] }, "autoUpdatesChannel": "stable", "cleanupPeriodDays": 20 } ``` **What each key does** The same file with a comment above each key. Read it here; copy from the oth…
All settings
Claude Code CLI · in the page
settings-reference
…-files) files when memory loads | Memory and context | Any file | | [`cleanupPeriodDays`](#cleanupperioddays) | Choose how many days Claude Code keeps [transcripts](/docs/en/data-usage.md#data-retenti…
Create custom subagents
Claude Code CLI · in the page
sub-agents
…omatic cleanup**: Claude Code deletes subagent transcripts after the `cleanupPeriodDays` retention period, 30 days by default, following the [retention sweep rules](/docs/en/claude-directory.md#cleane…
Configure your terminal for Claude Code
Claude Code CLI · in the page
terminal-config
…s sent again, including in a later session. Cache files older than [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) are deleted under the [retention sweep rules](/docs/en/claude-d…
Tools reference
Claude Code CLI · in the page
tools-reference
…ine. A draft you leave in the queue expires after 30 days, or after [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) when that's shorter. The queue holds 10 drafts across all your…
Use Claude Code in VS Code
Claude Code CLI · in the page
vs-code
…ode keeps the newest 20 exchanges and expires stored threads on the [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) schedule, as long as Claude Code can [safely determine the rete…
Run parallel sessions with worktrees
Claude Code CLI · in the page
worktrees
…-view.md#how-file-edits-are-isolated) once they are older than your [`cleanupPeriodDays`](/docs/en/settings-reference#cleanupperioddays) setting, following the [retention sweep rules](/docs/en/claude-…
Set up Cowork (local mode) for a HIPAA-ready organization
Claude Documentation · in the page
cowork/hipaa-setup
…e terminal. To control how long a computer keeps Cowork tasks, set [`cleanupPeriodDays`](#when-claude-desktop-deletes-cowork-tasks). It's a Claude Code managed setting, not a Claude Desktop policy ke…
Migrate Claude Desktop from a cloud provider to Claude Enterprise
Claude Documentation · in the page
third-party/claude-desktop/move-to-claude-enterprise
…s (any host is allowed until you set a list), and session retention (`cleanupPeriodDays`): Claude Code's managed settings. * Remote [managed MCP servers](/docs/third-party/claude-desktop/configuration…