Capture
One read of Claude Code CLI
1 pages moved out of 186 read.
claude-directory Changed · +9 / -9 lines
from line 1541
### Kept until you delete them -The following paths are not covered by automatic cleanup and persist indefinitely. +The retention cleanup sweep doesn't cover the following paths. Claude Code keeps them until you delete them, apart from the two caches whose rows say that logging out deletes them. -| Path under `~/.claude/` | Contents | -| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `history.jsonl` | Every prompt you've typed, with timestamp and project path. Used for up-arrow recall. | -| `stats-cache.json` | Aggregated token and cost counts shown by `/usage` | -| `remote-settings.json` | Cached copy of [server-managed settings](/docs/en/server-managed-settings) for your organization, or `{}` when your organization has configured none. Only present when the session [fetches them](/docs/en/server-managed-settings#platform-availability). Claude Code checks for updates at startup and hourly during a session. | -| `cache/changelog.md` | Cached copy of the Claude Code changelog, used to show release notes after an update. Refreshed in the background. | -| `policy-limits.json` | Cached feature policy settings for your organization. Only present for some account types. Refreshed automatically. | +| Path under `~/.claude/` | Contents | +| ----------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `history.jsonl` | Every prompt you've typed, with timestamp and project path. Used for up-arrow recall. | +| `stats-cache.json` | Aggregated token and cost counts shown by `/usage` | +| `remote-settings.json` | Cached copy of [server-managed settings](/docs/en/server-managed-settings) for your organization, or `{}` when your organization has configured none. Only present when the session [fetches them](/docs/en/server-managed-settings#platform-availability). Claude Code checks for updates at startup and hourly during a session. Claude Code deletes it when you log out. | +| `cache/changelog.md` | Cached copy of the Claude Code changelog, used to show release notes after an update. Refreshed in the background. | +| `policy-limits.json` | Cached feature policy settings for your organization. Only present for some account types. Refreshed automatically. Claude Code deletes it when you log out. | Other small cache and lock files appear depending on which features you use and are safe to delete.