# server_unlink_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L299
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-server_unlink_window/

```c
void server_unlink_window(struct session *s, struct winlink *wl)
```

## Parameters

- `s` (`struct session *`)
- `wl` (`struct winlink *`)

## Called by

- [`cmd_break_pane_exec`](/en/tmux/3.2a/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-break-pane.c#L87)
- [`cmd_kill_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-kill-window-c-cmd_kill_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-kill-window.c#L70)
- [`cmd_move_window_exec`](/en/tmux/3.2a/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-move-window.c#L109)

## Calls

- [`server_destroy_session_group`](/en/tmux/3.2a/reference/c-function-server-fn-c-server_destroy_session_group/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L302)
- [`server_redraw_session_group`](/en/tmux/3.2a/reference/c-function-server_redraw_session_group/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L304)
- [`session_detach`](/en/tmux/3.2a/reference/c-function-session_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L301)

## Referenced by

- [`server_client_push_stderr`](/en/tmux/3.2a/reference/c-function-server_client_push_stderr/) (function)

## Referenced declarations

- [`session`](/en/tmux/3.2a/reference/c-struct-session/) (struct)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
