# libtmux:kill-pane

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

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

Delete exactly the captured physical PANE and return a COMMAND-OUTCOME.
The live pane identity is checked before dispatch. Other panes are preserved.
Signals STALE-TARGET when PANE disappeared or belongs to another generation.
Never retries the mutation.

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

## Parameters

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

## tmux command

The tmux commands behind `kill-pane`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_kill_pane_entry`](/en/tmux/latest/reference/c-variable-cmd_kill_pane_entry/) (attribute)
- [`cmd_kill_pane_exec`](/en/tmux/latest/reference/c-function-cmd-kill-pane-c-cmd_kill_pane_exec/) (function)

## Guides

Pages that discuss `kill-pane`.

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