Skip to main content
Back to Commands
Copy ModeOften bound, e.g. bind C-k clear-history

clear-history

Short form: clearhist

Remove and free the scrollback history for a pane. Reclaims memory used by long-running panes with large buffers.

Synopsis

bash
tmux clear-history [-H] [-t target-pane]

Options

FlagDescription
-HAlso remove all hyperlinks stored for the pane
-t target-panePane whose history to clear

Examples

Clear the current pane's scrollback

bash
tmux clear-history

Clear pane 1's scrollback

bash
tmux clear-history -t 1

Default Keybinding

Often bound, e.g. bind C-k clear-history

Default prefix is Ctrl+b

Pro Tips

  • Useful to reclaim memory from panes with a huge history-limit
  • Bind it to a key to quickly wipe noisy scrollback