# libtmux.Session:kill

- **Module:** libtmux
- **Package:** libtmux
- **Language:** Lua
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-lua/blob/d68f829fe097e38dcbbf7147e276666fe615f0cf/lua/libtmux/_internal/entity.lua#L426
- **Page:** https://libtmux.org/en/lua/v0.1.1/reference/libtmux-session-kill/

```
kill: fun(
  self: libtmux.Session,
  options?: libtmux.TopologyOptions,
):libtmux.Request<boolean>
```

## Parameters

- `options` (`libtmux.TopologyOptions?`)

## tmux command

The tmux commands behind `kill`.

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

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_kill_session_entry`](/en/tmux/latest/reference/c-variable-cmd_kill_session_entry/) (attribute)
- [`cmd_kill_session_exec`](/en/tmux/latest/reference/c-function-cmd-kill-session-c-cmd_kill_session_exec/) (function)

## Guides

Pages that discuss `kill`.

- [Topology operations](/en/lua/v0.1.1/guides/topology/)

## In other ports

End a session

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Session.kill`](/en/py/latest/reference/libtmux-session-kill/) (method) |
| Ruby | [`LibTmux::Session#kill`](/en/ruby/latest/reference/libtmux-session-kill/) (method) |
| TypeScript | [`session.Session.kill`](/en/ts/latest/reference/session-session-kill/) (method) |
| Rust | [`session.Session.kill`](/en/rs/latest/reference/session-session-kill/) (method) |
| Go | [`tmux.Session.Kill`](/en/go/latest/reference/tmux-session-kill/) (method) |
| Java | [`io.github.libtmux.Session.kill`](/en/java/latest/reference/io-github-libtmux-session-session-kill/) (method) |
| C# | [`LibTmux.Session.KillAsync`](/en/csharp/latest/reference/libtmux-session-killasync/) (method) |
| C++ | [`libtmux::Session::kill`](/en/cxx/latest/reference/libtmux-session-kill/) (method) |
| Swift | [`Server.kill(_:)`](/en/swift/latest/reference/server-kill(_-)/) (method) |

No equivalent is recorded in PowerShell, Julia, Elixir, Kotlin, Scala or F#.
