# window_pane_destroy

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1090
- **Page:** https://libtmux.org/en/tmux/3.7c/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.7c/reference/c-function-window_destroy_panes/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L967)
- [`window_remove_pane`](/en/tmux/3.7c/reference/c-function-window_remove_pane/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L862)

## Calls

- [`cmd_free_argv`](/en/tmux/3.7c/reference/c-function-cmd_free_argv/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1132)
- [`colour_palette_free`](/en/tmux/3.7c/reference/c-function-colour_palette_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1133)
- [`input_free`](/en/tmux/3.7c/reference/c-function-input_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1107)
- [`options_free`](/en/tmux/3.7c/reference/c-function-options_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1129)
- [`screen_free`](/en/tmux/3.7c/reference/c-function-screen_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1109)
- [`style_ranges_free`](/en/tmux/3.7c/reference/c-function-style_ranges_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1134)
- [`window_pane_reset_mode_all`](/en/tmux/3.7c/reference/c-function-window_pane_reset_mode_all/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L1095)

## Referenced declarations

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