# window.Window.unlink

- **Module:** window.Window
- **Package:** @libtmux/libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/2cb93308200da38a26b59876618116850f110607/packages/libtmux/src/window.ts#L413
- **Page:** https://libtmux.org/reference/ts/window-window-unlink/

```
window.Window.unlink() -> Promise<void>
```

Remove this placement, leaving the window's other placements intact.

For a window linked into several sessions. A window shared because its
sessions are grouped is not linked, and tmux refuses with "window only
linked to one session" — a group member leaves by being killed, not by
unlinking.

## Example

```ts
const destination = await server.newSession({ name: "unlink-example" });
await window.link({ session: destination.id });
const placement = (await server.snapshot()).windows.one({
  id: window.id,
  session: { is: { id: destination.id } },
});
await placement.unlink();
```
