# key_bindings_remove

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L224
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-key_bindings_remove/

```c
void key_bindings_remove(const char *name, key_code key)
```

## Parameters

- `name` (`const char *`)
- `key` (`key_code`)

## Called by

- [`cmd_unbind_key_exec`](/en/tmux/3.2a/reference/c-function-cmd-unbind-key-c-cmd_unbind_key_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-unbind-key.c#L102)
- [`key_bindings_reset`](/en/tmux/3.2a/reference/c-function-key_bindings_reset/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L266)
- [`window_customize_unset_key`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_unset_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1303)

## Calls

- [`key_bindings_free`](/en/tmux/3.2a/reference/c-function-key-bindings-c-key_bindings_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L241)
- [`key_bindings_get_table`](/en/tmux/3.2a/reference/c-function-key_bindings_get_table/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L229)
- [`key_bindings_unref_table`](/en/tmux/3.2a/reference/c-function-key_bindings_unref_table/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L246)
- [`log_debug`](/en/tmux/3.2a/reference/c-function-log_debug/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/key-bindings.c#L237)

## Other function references

- [`key_bindings_get`](/en/tmux/3.2a/reference/c-function-key_bindings_get/) (function)
- [`key_string_lookup_key`](/en/tmux/3.2a/reference/c-function-key_string_lookup_key/) (function)

## Referenced declarations

- [`key_table.default_key_bindings`](/en/tmux/3.2a/reference/c-struct-key_table-default_key_bindings/) (attribute)
- [`key_binding.key`](/en/tmux/3.2a/reference/c-struct-key_binding-key/) (attribute)
- [`key_table.key_bindings`](/en/tmux/3.2a/reference/c-struct-key_table-key_bindings/) (attribute)
- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`KEYC_MASK_FLAGS`](/en/tmux/3.2a/reference/c-define-tmux-h-keyc_mask_flags/) (constant)
