# LibTmux.Window.KillAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Window.Lifecycle.cs#L53
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-window-killasync/

tmux command: [`kill-window`](/en/tmux/latest/manual/kill-window/)

```
LibTmux.Window.KillAsync(allExcept: bool, cancellationToken: CancellationToken) -> Task
```

Stops this window.

## Parameters

- `allExcept` (`bool`): Whether every other window in the session is stopped instead.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.
