# Libtmux_eio.Client.kill_server

- **Module:** Libtmux_eio
- **Package:** libtmux-eio
- **Language:** OCaml
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-ocaml/blob/237a37b5280b44f7f0dedf7b7aab04794e1b900a/eio/libtmux_eio.mli#L471
- **Public owner:** Libtmux_eio
- **Page:** https://libtmux.org/en/ocaml/latest/reference/libtmux_eio-client-kill_server/

```
val kill_server : t -> (unit, Libtmux.Error.t) result
```

Stop the whole tmux server: destroy every session and window and close every client. The command has no reply. A backend reports success when the daemon it is bound to has exited, then retires its own connection; other clients of that daemon see it disconnect.

## Parameters

- `arg1` (`t`)

## tmux command

The tmux commands behind `kill_server`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_kill_server_entry`](/en/tmux/latest/reference/c-variable-cmd_kill_server_entry/) (attribute)
- [`cmd_kill_server_exec`](/en/tmux/latest/reference/c-function-cmd-kill-server-c-cmd_kill_server_exec/) (function)
