# tmux.Running.Kill

- **Module:** tmux.Running
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/session_run.go#L592
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-running-kill/

```
tmux.Running.Kill(ctx: context.Context) -> error
```

Kill asks the tmux server to send SIGKILL to the process group running the command. It does not wait for the process to stop; call Wait to observe the resulting status or signal.

Kill runs through [Server.RunShell] with the pane as its target, so tmux
resolves the process group id itself, at the moment it runs, on whatever
host the server is on, rather than trusting a process id this program read
earlier. A pane that no longer exists makes that id resolve empty and Kill
a no-op; Kill reports only whether tmux could dispatch the request, not
whether a process still existed to receive it.
