# window_pane_destroy

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

```c
static void window_pane_destroy(struct window_pane *)
```

## Parameters

- `wp` (`struct window_pane *`)

## Called by

- [`window_destroy_panes`](/en/tmux/3.2a/reference/c-function-window_destroy_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L792)
- [`window_remove_pane`](/en/tmux/3.2a/reference/c-function-window_remove_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L714)

## Calls

- [`cmd_free_argv`](/en/tmux/3.2a/reference/c-function-cmd_free_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L928)
- [`input_free`](/en/tmux/3.2a/reference/c-function-input_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L905)
- [`options_free`](/en/tmux/3.2a/reference/c-function-options_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L925)
- [`screen_free`](/en/tmux/3.2a/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L907)
- [`window_pane_reset_mode_all`](/en/tmux/3.2a/reference/c-function-window_pane_reset_mode_all/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L894)

## Referenced declarations

- [`all_window_panes`](/en/tmux/3.2a/reference/c-variable-all_window_panes/) (attribute)
- [`window_pane.argc`](/en/tmux/3.2a/reference/c-struct-window_pane-argc/) (attribute)
- [`window_pane.argv`](/en/tmux/3.2a/reference/c-struct-window_pane-argv/) (attribute)
- [`window_pane.base`](/en/tmux/3.2a/reference/c-struct-window_pane-base/) (attribute)
- [`window_pane.cwd`](/en/tmux/3.2a/reference/c-struct-window_pane-cwd/) (attribute)
- [`window_pane_resize.entry`](/en/tmux/3.2a/reference/c-struct-window_pane_resize-entry/) (attribute)
- [`window_pane.event`](/en/tmux/3.2a/reference/c-struct-window_pane-event/) (attribute)
- [`window_pane.fd`](/en/tmux/3.2a/reference/c-struct-window_pane-fd/) (attribute)
- [`window_pane.ictx`](/en/tmux/3.2a/reference/c-struct-window_pane-ictx/) (attribute)
- [`window_pane.options`](/en/tmux/3.2a/reference/c-struct-window_pane-options/) (attribute)
- [`window_pane.palette`](/en/tmux/3.2a/reference/c-struct-window_pane-palette/) (attribute)
- [`window_pane.pipe_event`](/en/tmux/3.2a/reference/c-struct-window_pane-pipe_event/) (attribute)
- [`window_pane.pipe_fd`](/en/tmux/3.2a/reference/c-struct-window_pane-pipe_fd/) (attribute)
- [`window_pane.resize_queue`](/en/tmux/3.2a/reference/c-struct-window_pane-resize_queue/) (attribute)
- [`window_pane.resize_timer`](/en/tmux/3.2a/reference/c-struct-window_pane-resize_timer/) (attribute)
- [`window_pane.searchstr`](/en/tmux/3.2a/reference/c-struct-window_pane-searchstr/) (attribute)
- [`window_pane.shell`](/en/tmux/3.2a/reference/c-struct-window_pane-shell/) (attribute)
- [`window_pane.status_screen`](/en/tmux/3.2a/reference/c-struct-window_pane-status_screen/) (attribute)
- [`window_pane`](/en/tmux/3.2a/reference/c-struct-window_pane/) (struct)
