# LibTmux.Server.unsetHook

- **Package:** libtmux-haskell
- **Language:** Haskell
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-haskell/blob/72edb54317bf619c6dc54bff311844f062f8984c/src/LibTmux/Server.hs#L634
- **Page:** https://libtmux.org/en/haskell/latest/reference/libtmux-server-v-unsethook/

```haskell
unsetHook :: Server -> OptionTarget -> Text -> IO ()
```

Signature types: [`Server`](/en/haskell/latest/reference/libtmux-server-t-server/), [`OptionTarget`](/en/haskell/latest/reference/libtmux-options-t-optiontarget/), [`Text`](https://hackage.haskell.org/package/text-2.1.3/docs/Data-Text.html#t:Text), [`IO`](https://hackage.haskell.org/package/base-4.22.0.0/docs/Prelude.html#t:IO).

Remove the local override for an event, including every entry.
 A local hook can inherit its parent's entries again.

## Referenced declarations

- [`LibTmux.Options.OptionTarget`](/en/haskell/latest/reference/libtmux-options-t-optiontarget/) (data type)
- [`LibTmux.Server.Server`](/en/haskell/latest/reference/libtmux-server-t-server/) (data type)

## tmux command

The tmux commands behind `unsetHook`.

- [`set-hook`](/en/tmux/latest/manual/set-hook/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_set_hook_entry`](/en/tmux/latest/reference/c-variable-cmd_set_hook_entry/) (attribute)
- [`cmd_set_option_exec`](/en/tmux/latest/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function)

## Guides

Pages that discuss `unsetHook`.

- [Read and change options and hooks](/en/haskell/latest/guides/options/)
