---
title: clear
categories: |
platform
version: 0.104.0
platform: |
Clear the terminal.
usage: |
Clear the terminal.
editLink: false
contributors: false
---
<!-- This file is automatically generated. Please edit the command in https://github.com/nushell/nushell instead. -->
# `clear` for [platform](/commands/categories/platform.md)
<div class='command-title'>Clear the terminal.</div>
## Signature
```> clear {flags} ```
## Flags
- `--keep-scrollback, -k`: Do not clear the scrollback history
## Input/output types:
| input | output |
| ------- | ------- |
| nothing | nothing |
## Examples
Clear the terminal
```nu
> clear
```
Clear the terminal but not its scrollback history
```nu
> clear --keep-scrollback
```
## Notes
By default clears the current screen and the off-screen scrollback buffer.