Skip to main content
reopt Handbook
reopt Handbook
Claude Code Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Flags

Task guides

Core command basicsStarting and resuming workSkills and Custom CommandsAutomation and Web CommandsOperations and Safety CommandsCustom commands and skillsMCP connections and commands

Conversation and context

Cmd. /add-dirCmd. /backgroundCmd. /compactCmd. /contextCmd. /copyCmd. /exportCmd. /forkCmd. /importCmd. /initCmd. /memoryCmd. /recapCmd. /renameCmd. /resumeCmd. /rewindCmd. claude purge

Planning and execution

Cmd. /autofix-prCmd. /batchCmd. /desktopCmd. /goalCmd. /loopCmd. /planCmd. /remote-envCmd. /scheduleCmd. /tasksCmd. /teleportCmd. /workflows

Review and verification

Cmd. /code-reviewCmd. /runCmd. /run-skill-generatorCmd. /security-reviewCmd. /simplifyCmd. /verify

Models and settings

Cmd. /claude-apiCmd. /configCmd. /effortCmd. /fastCmd. /modelCmd. /output-styleCmd. /update-config

Permissions and integrations

Cmd. /agentsCmd. /hooksCmd. /ideCmd. /mcpCmd. /permissionsCmd. /pluginCmd. /reload-pluginsCmd. /reload-skillsCmd. /sandboxCmd. /skillsCmd. /web-setup

Status and diagnostics

Cmd. /debugCmd. /diffCmd. /doctorCmd. /fewer-permission-promptsCmd. /release-notesCmd. /team-onboarding

Display and input

Cmd. /colorCmd. /focusCmd. /keybindingsCmd. /powerupCmd. /statuslineCmd. /terminal-setupCmd. /themeCmd. /tui

Account and usage

Cmd. /upgradeCmd. /usageCmd. /usage-credits

Legacy

Cmd. /costCmd. /pr-commentsCmd. /reviewCmd. /statsCmd. /ultrareviewCmd. /vimCmd. /approved-toolsCmd. /commandsCmd. /extra-usageCmd. /settingsCmd. /tagCmd. /todos

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Claude Code Command Master›Cmd. claude purge
한국어KOEnglishEN

Cmd. claude purge

Remove local project session data through the terminal CLI.

Written and reviewed by Eric Han · Co-founder & CTO, reopt

Key takeaways

  • Remove local project session data through the terminal CLI.
  • Check the input surface and availability before using the examples below.

Purpose

Remove local project session data through the terminal CLI. Named claude project purge before v2.1.288.

claude purge [path]
claude project purge [path]

Availability

FieldValue
Input surfaceTerminal shell
KindTerminal CLI
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-10-23 · Claude Code 2.1.308

claude project purge became claude purge in v2.1.288. The older name still works and prints a notice; installations older than v2.1.288 use the older name.

Examples

claude purge ~/work/repo --dry-run

Effects and persistence

The purge operation deletes the project's transcripts, task lists, debug logs, file-edit history, prompt history lines, and its entry in ~/.claude.json. The --dry-run example only previews what would be deleted.

Cautions

Do not run the destructive operation until you have checked its target and retained any session data you need. The command was named claude project purge before v2.1.288; the older name still works and prints a notice.

Official sources

  • Changelog
  • Cli Reference
  • Claude Directory#Clear Local Data

Complete command list · Verification scope

Related docs

Cmd. /approved-tools

Migrate the older permission command to /permissions.

Cmd. /extra-usage

Move from the older extra-usage name to /usage-credits.

Complete command list

Codex Command Master · Every Codex CLI slash command on one page: syntax, kind, and availability for all 57 official rows, plus examples, effects, and cautions by category.

Cmd. /import

Codex Command Master · Import Claude Code or Cursor setup, project files, and recent chats into Codex.

Cmd. /archive

Codex Command Master · Archive a completed or abandoned Codex session.

Cmd. /rewind

Restore or summarize from a checkpoint (/undo).

Cmd. /autofix-pr

Start a cloud session that fixes PR failures and review comments.

On this page

PurposeAvailabilityExamplesEffects and persistenceCautionsOfficial sources