# libtmux:kill-window

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/termination.lisp#L130
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-kill-window/

```
(kill-window client window &key cancel-token timeout output-limit)
```

Delete exactly the captured physical WINDOW and return a COMMAND-OUTCOME.
Every link to that physical window is removed by tmux. Other windows remain.
The live identity is checked before dispatch; the mutation is never retried.

See also: `libtmux:kill-pane`, `libtmux:kill-server`, `libtmux:kill-session`.

## Parameters

- `client`
- `window`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `kill-window`.

- [`kill-window`](/en/tmux/latest/manual/kill-window/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_kill_window_entry`](/en/tmux/latest/reference/c-variable-cmd_kill_window_entry/) (attribute)
- [`cmd_kill_window_exec`](/en/tmux/latest/reference/c-function-cmd-kill-window-c-cmd_kill_window_exec/) (function)

## Guides

Pages that discuss `kill-window`.

- [Explicit operations](/en/lisp/latest/guides/operations/)
