# window.Window.unset_hook

- **Module:** window.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/f0e37052c232636b61d095817046e6bfc8f2ca40/crates/libtmux/src/window/settings.rs#L198
- **Page:** https://libtmux.org/en/rs/latest/reference/window-window-unset_hook/

```
window.Window.unset_hook(self, name: &str) -> Result<(), Error>
```

Remove one hook.

# Errors

Returns an error when tmux rejects the hook name.

Returns [`crate::Error::OptionScopeMismatch`] when tmux keeps the
option in another of its tables.
