# tmux_key:unbind/2

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

```
unbind(Server, Key)
-spec unbind(tmux_server:t(), key()) ->
                {ok, tmux_operation:completed()} |
                {error, tmux_operation:failure()}.
```

Remove a binding from the native prefix table. Performs I/O; see `unbind/3`.

## Parameters

- `Server` (`tmux_server:t()`)
- `Key` (`key()`)

## tmux command

The tmux commands behind `unbind/2`.

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

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

## In other ports

Unbind a key

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.unbind_key`](/en/py/latest/reference/libtmux-server-unbind_key/) (method) |
| Haskell | No public Haskell equivalent is implemented; the current modules expose scalar values and version parsing. |
| TypeScript | no equivalent on `Server` |
| Rust | [`server.Server.unbind_key`](/en/rs/latest/reference/server-server-unbind_key/) (method) |
| Go | [`tmux.Server.UnbindKey`](/en/go/latest/reference/tmux-server-unbindkey/) (method) |
| Java | [`io.github.libtmux.Keys.unbind`](/en/java/latest/reference/io-github-libtmux-keys-keys-unbind/) (method) |
| C# | [`LibTmux.TmuxKeys.UnbindAsync`](/en/csharp/latest/reference/libtmux-tmuxkeys-unbindasync/) (method) |
| C++ | [`libtmux::Server::unbind_key`](/en/cxx/latest/reference/libtmux-server-unbind_key/) (method) |
| Swift | no equivalent on `Server` |
| OCaml | No direct public OCaml equivalent is recorded for this operation. |
| Perl | No dedicated equivalent in the selected Perl surface. Explicit Server::cmd remains available for native tmux commands. |

No equivalent is recorded in Ruby, Lua, PowerShell, Julia, Elixir, Common Lisp, Clojure, Kotlin, Scala or F#.
