# window.Window.unlink

- **Module:** window.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window.rs#L635
- **Page:** https://libtmux.org/reference/rs/window-window-unlink/

```
window.Window.unlink(self) -> Result<(), Error>
```

Remove this session's link to the window, leaving other links intact.

# Errors

Returns an error when tmux refuses the command, which includes
unlinking a window that only one session holds.
