Skip to main content
reopt Handbook
reopt Handbook
Codex Command MasterLabels and command selectionHow to read a detail guideComplete command listTerminal CLI Commands and Options

Task guides

Core Command GroupSession Command GroupCustom Command GuideMCP Command and Integration GuideDesign Workflows

Conversation and context

Cmd. /clearCmd. /renameCmd. /archiveCmd. /deleteCmd. /compactCmd. /copyCmd. /memoriesCmd. /importCmd. /initCmd. /mentionCmd. /forkCmd. /sideCmd. /resumeCmd. /newCmd. /cdCmd. /exportCmd. /recap

Planning and execution

Cmd. /planCmd. /goalCmd. /psCmd. /stopCmd. /app

Review and verification

Cmd. /review

Models and settings

Cmd. /modelCmd. /fast

Permissions and integrations

Cmd. /permissionsCmd. /ideCmd. /setup-default-sandboxCmd. /sandbox-add-read-dirCmd. /pluginsCmd. /hooksCmd. /approveCmd. /skillsCmd. /mcp

Status and diagnostics

Cmd. /agentCmd. /appsCmd. /diffCmd. /feedbackCmd. /personalityCmd. /rawCmd. /statusCmd. /debug-configCmd. /title

Display and input

Cmd. /keymapCmd. /vimCmd. /experimentalCmd. /statuslineCmd. /themeCmd. /petsCmd. /voiceCmd. /worktree

Account and usage

Cmd. /exitCmd. /logoutCmd. /quitCmd. /usage

Legacy

Cmd. /approvals

Verification and history

Current verification scopeHandbook updatesRelease coverage historyEarlier verification recordsCommand change history
Handbook›Codex Command Master›Cmd. /delete
한국어English

Cmd. /delete

Permanently delete the current Codex session transcript and spawned descendant sessions.

Key takeaways

  • Permanently delete the current Codex session transcript and spawned descendant sessions.
  • Check the input surface and availability before using the examples below.

Purpose

Permanently delete the current Codex session transcript and spawned descendant sessions.

/delete

Availability

FieldValue
Input surfaceRunning CLI prompt
KindBuilt-in
StatusCurrent reference
Aliases—
Documented minimumNot specified
Reviewed against2026-09-22 · Codex CLI 0.155.1

The installed command menu and account or organization settings determine availability.

Examples

/delete

When to use it

  1. Delete a temporary test session that included sensitive prompt material.
  2. Remove an abandoned experiment and its spawned descendant sessions.
  3. Before deleting an audit-relevant session, capture required evidence in a ticket, PR, or export.

Choosing related commands

CommandDifferenceChoose It When
/deletePermanently removes the transcriptThe record should not be retained
/archiveKeeps the transcript recoverableYou only want to clean the active list
/quitExits without changing retentionYou want to leave the session intact

Effects and persistence

Opens the permanent session-deletion flow. Use archive when you only want to put the session aside.

/delete is an official slash command for permanently deleting the current Codex session transcript and exiting the TUI. Use it for sensitive or disposable sessions where archiving is not enough.

Changes

  • /delete was added to the official slash command table.
  • The related codex delete <SESSION> CLI path and app-server thread/delete path were added.
  • Deletion removes the current session and spawned descendant sessions.

Cautions

  • Deletion is permanent; check retention, audit, and incident-response needs first.
  • /delete is unavailable while a task is running or inside a side conversation.
  • If you only want to clean the resume list, use /archive.

Official sources

  • Developer Commands
  • Changelog

Complete command list · Verification scope · History for this command

Related docs

Cmd. /archive

Archive a completed or abandoned Codex session.

Cmd. /agent

Switch between spawned Codex subagent threads to inspect each agent transcript, status, model, and reasoning effort before merging their work.

Thread Lifecycle

Advanced Codex Usage · Manage Codex sessions across start, resume, fork, compact, archive, delete, and handoff.

Cmd. claude project purge

Claude Code Command Master · Remove local project session data through the terminal CLI.

Cmd. /release-notes

Claude Code Command Master · Displays selected release notes in the transcript without adding them to model conversation context.

Cmd. /archive

Archive a completed or abandoned Codex session.

Cmd. /compact

Summarize a long conversation to free context.

On this page

PurposeAvailabilityExamplesWhen to use itChoosing related commandsEffects and persistenceChangesCautionsOfficial sources