# server_unlink_window

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L305
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-cmd-break-pane-c-cmd_break_pane_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-break-pane.c#L92)
- [`cmd_kill_window_exec`](/en/tmux/latest/reference/c-function-cmd-kill-window-c-cmd_kill_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-kill-window.c#L70)
- [`cmd_move_window_exec`](/en/tmux/latest/reference/c-function-cmd-move-window-c-cmd_move_window_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-move-window.c#L109)

## Calls

- [`server_destroy_session_group`](/en/tmux/latest/reference/c-function-server-fn-c-server_destroy_session_group/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L308)
- [`server_redraw_session_group`](/en/tmux/latest/reference/c-function-server_redraw_session_group/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L310)
- [`session_detach`](/en/tmux/latest/reference/c-function-session_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L307)

## Referenced by

- [`server_client_detach`](/en/tmux/latest/reference/c-function-server_client_detach/) (function)

## Referenced declarations

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