# tmux.Pane.ClearHistory

- **Module:** tmux.Pane
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/5f808882015a975a65acc7f9da5b3ff0d5cbdc91/tmux/pane_input.go#L320
- **Page:** https://libtmux.org/reference/go/tmux-pane-clearhistory/

```
tmux.Pane.ClearHistory(ctx: context.Context, request: ClearHistoryRequest) -> error
```

ClearHistory removes scrollback from the receiver's exact linked pane. ResetHyperlinks triggers a version probe before mutation. A completed command produces a redacted [CommandError] only for stderr; nonzero exits without stderr are ignored. Accepted changes are not rolled back.
