# io.github.libtmux.kotlin.Server.killSession

- **Module:** io.github.libtmux.kotlin
- **Package:** io.github.libtmux:libtmux-kotlin
- **Language:** Kotlin
- **Kind:** method
- **Source:** https://libtmux.org/en/kotlin/latest/reference/sources/libtmux-kotlin/build/generated/sources/operations/kotlin/io/github/libtmux/kotlin/ServerOperations.kt
- **Page:** https://libtmux.org/en/kotlin/latest/reference/io-github-libtmux-kotlin-server-killsession/

```
public suspend fun Server.killSession(name: String): Unit
```

Ends the session with this name, and everything in it.

## Parameters

- `name` (`String`)
