# /clear Command

> It starts a new chat with an empty context.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** /clear, /reset, /new

## Think of it like

It is like you wipe the board. Then you can start a new one.

## Definition

/clear starts a new conversation with an empty context, so Claude no longer sees the chat so far. CLAUDE.md and your project memory still load. The old conversation is saved, so /resume can bring it back. Pass a name to label the old one in the /resume list. It is the cleanest way to switch to a new task.

## Example

Jack fixed a login bug and now wants to work on the footer. He types /clear, so the long talk about login no longer fills the window.

## Example code

```console
/clear login-fix
```

Start fresh, and name the old chat login-fix.

## Why it matters

Old chat about a finished task uses up room and can pull Claude off track. A clean start keeps it focused.

## Common mistake

Using /clear when you still need the chat. /compact keeps a short summary of it. /clear keeps none.

## Three principles

- **Empty context.** A new conversation.
- **Old chat is saved.** /resume brings it back.
- **Memory stays.** CLAUDE.md still loads.

## Related terms

- [Auto-Compact](https://learn.benibix.com/term/ai/auto-compact)
- [/resume Command](https://learn.benibix.com/term/ai/resume-command)
- [Context Window](https://learn.benibix.com/term/ai/context-window)
- [CLAUDE.md](https://learn.benibix.com/term/ai/claude-md)

## Told apart from

- [/clear vs /compact](https://learn.benibix.com/compare/clear-command-vs-auto-compact): People often think /clear and /compact both just make room. They keep very different things. /compact squeezes the chat into a summary, so Claude still knows what you were doing. /clear starts a new chat with an empty context, so Claude knows nothing of it. Use /compact to go on with the same task. Use /clear to start a new one.

## Taught in

- [Resume, Branch and Rename](https://learn.benibix.com/learn/ai-claude-code-commands/resume-branch-and-rename): Claude Code Commands, 4/17

![A grid of squares filled in colors: system prompt, tools, memory files, messages, then empty squares. A line near the end marks where auto-compact starts.](https://learn.benibix.com/diagrams/cmd-context.svg)

---

Source: https://learn.benibix.com/term/ai/clear-command
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
