# Libtmux.Operations.kill_session

- **Module:** Libtmux
- **Package:** libtmux
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/205dfda49742592b479247049d186956e4a4cfe9/lib/libtmux.mli#L1267
- **Public owner:** Libtmux
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux-operations-kill_session/

```
val kill_session : Session.target -> unit Command.t
```

Remove the session and its window links. Windows with no other links and their panes are destroyed. Removing the last session may stop tmux.

## Parameters

- `arg1` (`Session.target`)
