# libtmux.Pane.unset_hook

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

```
libtmux.Pane.unset_hook(self, hook: str, global_: bool | None = None, scope: OptionScope | _DefaultOptionScope | None = DEFAULT_OPTION_SCOPE) -> Self
```

Unset hook for tmux target.

Wraps ``$ tmux set-hook -u <hook>`` / ``$ tmux set-hook -U <hook>``

## Parameters

- `self`
- `hook` (str) — hook to unset, e.g. 'after-show-environment'
- `global_` (bool | None)
- `scope` (OptionScope | _DefaultOptionScope | None)

## Raises

- `exc.OptionError`
- `exc.UnknownOption`
- `exc.InvalidOption`
- `exc.AmbiguousOption`
