# libtmux:unset-hook

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/configuration-operations.lisp#L217
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-unset-hook/

```
(unset-hook client name &key scope target (key nil key-p) cancel-token timeout output-limit)
```

Remove one registered hook or hook-array entry and return its outcome.
SCOPE/TARGET and KEY follow SET-HOOK. The ordinary path never uses [set-hook](/en/tmux/latest/manual/set-hook/) -R,
but tmux may run a remaining native after-hook as a consequence of this
[set-hook](/en/tmux/latest/manual/set-hook/) command. The operation does not retry and validates the exact live
catalog before payload dispatch.

See also: `libtmux:set-hook`.

## Parameters

- `client`
- `name`
- `scope?`
- `target?`
- `key?`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `unset-hook`.

- [`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 `unset-hook`.

- [Explicit operations](/en/lisp/latest/guides/operations/)
