External Publication
Visit Post

Add /clear Command to Instantly Clear Chat

OpenAI Developer Community April 23, 2026
Source

Introduce a /clear command in ChatGPT that instantly clears the entire chat window—similar to the cls command in Windows Command Prompt or the /clear command in terminal-based AI tools like Codex CLI.

Why This Helps:

  • Speed & Efficiency: Users can instantly reset the chat without navigating menus.

  • Familiar UX: Matches standard terminal behavior (cls, clear, Ctrl+L) expected by developers and power users.

  • Precedent: Already implemented in OpenAI’s own Codex CLI , where /clear wipes the terminal instantly.

Implementation Suggestion:

  • Type /clear → Entire chat clears instantly (client-side only).

  • Optional: Add confirmation dialog for accidental use.

  • Works alongside existing “Clear Conversations” in settings.

This small change would greatly improve usability, especially for users treating ChatGPT like a coding or command-line assistant.

Discussion in the ATmosphere

Loading comments...