# libtmux:unbind-key

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/key-bindings.lisp#L95
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-unbind-key/

```
(unbind-key client key &key (table "prefix") cancel-token timeout output-limit)
```

Remove exactly one KEY from TABLE and return a COMMAND-OUTCOME.
TABLE defaults to prefix. Both strings are literal. A missing key in an
existing table is a native no-op; an absent table is an error. Removing its last
binding can delete the table, so repeated removal need not succeed. No bulk
deletion, reset or retry is implicit. Blocks under shared preflight/dispatch
limits. Success acknowledges removal and hooks; it cannot undo earlier key
execution. Native errors and uncertain outcomes retain their diagnostics.

See also: `libtmux:bind-key`, `libtmux:error-outcome`, `libtmux:list-keys`.

## Parameters

- `client`
- `key`
- `table?`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `unbind-key`.

- [`unbind-key`](/en/tmux/latest/manual/unbind-key/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_unbind_key_entry`](/en/tmux/latest/reference/c-variable-cmd_unbind_key_entry/) (attribute)
- [`cmd_unbind_key_exec`](/en/tmux/latest/reference/c-function-cmd-unbind-key-c-cmd_unbind_key_exec/) (function)

## Guides

Pages that discuss `unbind-key`.

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