# 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/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/pane_input.go#L370
- **Page:** https://libtmux.org/en/go/latest/reference/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.
