# LibTmux::Window#kill

- **Module:** LibTmux
- **Package:** libtmux
- **Language:** Ruby
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ruby/blob/dcc9f8b5a6970144a9e7d80cd5f381d8f6198372/gems/libtmux/lib/libtmux/entity.rb#L87
- **Public owner:** LibTmux::Entity#kill
- **Page:** https://libtmux.org/en/ruby/v0.1.0.alpha.2/reference/libtmux-window-kill/

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

```
def kill: (
  ?timeout: ::Numeric,
  ?cancel: untyped
) -> ::LibTmux::CommandResult
```

Behavior: Entity removal.

Behavior contract: Entity removal.

## In other ports

### Close a window

- Python: [`libtmux.Window.kill`](/en/py/latest/reference/libtmux-window-kill/) (method)
- Lua: [`libtmux.Window:kill`](/en/lua/latest/reference/libtmux-window-kill/) (method)
- TypeScript: [`window.Window.kill`](/en/ts/latest/reference/window-window-kill/) (method)
- Rust: [`window.Window.kill`](/en/rs/latest/reference/window-window-kill/) (method)
- Go: [`tmux.Window.Kill`](/en/go/latest/reference/tmux-window-kill/) (method)
- Java: [`io.github.libtmux.Window.Window.kill`](/en/java/latest/reference/io-github-libtmux-window-window-kill/) (method)
- C#: [`LibTmux.Window.KillAsync`](/en/csharp/latest/reference/libtmux-window-killasync/) (method)
- C++: [`libtmux::Window::kill`](/en/cxx/latest/reference/libtmux-window-kill/) (method)
- Swift: [`Server.kill(_:)`](/en/swift/latest/reference/server-kill(_-)/) (method)
