# LibTmux.Server.KillSessionAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Server.Lifecycle.cs#L80
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-server-killsessionasync/

```
LibTmux.Server.KillSessionAsync(target: string, cancellationToken: CancellationToken) -> Task
```

Stops one session.

## Parameters

- `target` (`string`): The session to stop.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.
