# tmux_key:clear_table/2

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

```
clear_table(Server, Table)
-spec clear_table(tmux_server:t(), binary()) ->
                     {ok, tmux_operation:completed()} |
                     {error, tmux_operation:failure()}.
```

Remove the entire explicitly named table through native [unbind-key](/en/tmux/latest/manual/unbind-key/) -a -T. Names use the bounds in `t:bind_options/0`. This can remove default bindings and affect attached clients. Missing tables remain native errors; this call does not restore factory defaults or cancel commands already queued. Performs I/O after endpoint and argument validation.

## Parameters

- `Server` (`tmux_server:t()`)
- `Table` (`binary()`)

## tmux command

The tmux commands behind `clear_table/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 `clear_table/2`.

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