# LibTmux.Session.KillWindowAsync

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** C#
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-dotnet/blob/cf34b255c896d19a97e7d7fabea58609c916012d/src/LibTmux/Session.Lifecycle.cs#L184
- **Page:** https://libtmux.org/en/csharp/latest/reference/libtmux-session-killwindowasync/

```
LibTmux.Session.KillWindowAsync(target: string?, cancellationToken: CancellationToken) -> Task
```

Stops one window in this session.

## Parameters

- `target` (`string?`): The window target, or null for the active window.
- `cancellationToken` (`CancellationToken`): Cancels the tmux command.
