# tmux_key:unbind/3

- **Package:** libtmux_erlang
- **Language:** Erlang
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-erlang/blob/d1b6308440cf9eb8f6647e7ae434bce60e849368/apps/libtmux_erlang/src/tmux_key.erl#L97
- **Page:** https://libtmux.org/en/erlang/latest/reference/tmux_key-unbind-3/

```
unbind(Server, Key0, Options)
-spec unbind(tmux_server:t(),
             key(),
             #{table => binary()}) ->
                {ok, tmux_operation:completed()} |
                {error, tmux_operation:failure()}.
```

Remove one key from the explicit table, defaulting to prefix. Only table is accepted in the options map. A missing key in an existing table is a native no-op; a missing explicit table remains an error. Removing the final custom binding can remove its table, so a repeated call can then report that missing table. Invalid native key names are never quietly suppressed.

Performs I/O. Effects already queued by a client are unaffected. Use
`clear_table/2` to remove an entire explicitly named table.

## Parameters

- `Server` (`tmux_server:t()`)
- `Key0` (`key()`)
- `Options` (`#{table => binary()}`)

## tmux command

The tmux commands behind `unbind/3`.

- [`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/3`.

- [Install application keybindings](/en/erlang/latest/guides/keys/)
