# window_buffer_do_delete

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L404
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_do_delete/

```c
static void window_buffer_do_delete(void *modedata, void *itemdata, struct client *c, key_code key)
```

## Parameters

- `modedata` (`void *`)
- `itemdata` (`void *`)
- `c` (`struct client *`)
- `key` (`key_code`)

## Called by

- [`window_buffer_key`](/en/tmux/3.2a/reference/c-function-window-buffer-c-window_buffer_key/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L519)

## Calls

- [`mode_tree_down`](/en/tmux/3.2a/reference/c-function-mode_tree_down/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L412)
- [`paste_free`](/en/tmux/3.2a/reference/c-function-paste_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-buffer.c#L414)

## Other function references

- [`mode_tree_get_current`](/en/tmux/3.2a/reference/c-function-mode_tree_get_current/) (function)
- [`paste_get_name`](/en/tmux/3.2a/reference/c-function-paste_get_name/) (function)

## Referenced declarations

- [`__unused`](/en/tmux/3.2a/reference/c-define-compat-h-__unused/) (constant)
- [`client`](/en/tmux/3.2a/reference/c-struct-client/) (struct)
- [`paste_buffer.data`](/en/tmux/3.2a/reference/c-struct-paste_buffer-data/) (attribute)
- [`window_buffer_modedata.data`](/en/tmux/3.2a/reference/c-struct-window_buffer_modedata-data/) (attribute)
- [`key_code`](/en/tmux/3.2a/reference/c-typedef-key_code/) (typealias)
- [`window_buffer_itemdata.name`](/en/tmux/3.2a/reference/c-struct-window_buffer_itemdata-name/) (attribute)
