# libtmux.Pane.clear_history

- **Module:** libtmux.Pane
- **Package:** libtmux
- **Language:** Python
- **Kind:** method
- **Source:** https://github.com/tmux-python/libtmux/blob/036c521c4b83ce6e434eb50afe2a0d08a6a05e46/src/libtmux/pane.py#L2576
- **Page:** https://libtmux.org/reference/py/libtmux-pane-clear_history/

```
libtmux.Pane.clear_history(self, reset_hyperlinks: bool | None = None) -> None
```

Clear pane history buffer via ``$ tmux clear-history``.

## Parameters

- `self`
- `reset_hyperlinks` (bool | None) — Also reset hyperlinks (``-H`` flag). Requires tmux 3.4+.

## Example

```python
>>> pane.clear_history()
```
