# winlink_remove

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L193
- **Page:** https://libtmux.org/en/tmux/3.2a/reference/c-function-winlink_remove/

```c
void winlink_remove(struct winlinks *wwl, struct winlink *wl)
```

## Parameters

- `wwl` (`struct winlinks *`)
- `wl` (`struct winlink *`)

## Called by

- [`server_link_window`](/en/tmux/3.2a/reference/c-function-server_link_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/server-fn.c#L275)
- [`session_destroy`](/en/tmux/3.2a/reference/c-function-session_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L224)
- [`session_detach`](/en/tmux/3.2a/reference/c-function-session_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L359)
- [`session_group_synchronize1`](/en/tmux/3.2a/reference/c-function-session-c-session_group_synchronize1/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L688)
- [`session_renumber_windows`](/en/tmux/3.2a/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/session.c#L736)
- [`spawn_window`](/en/tmux/3.2a/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/spawn.c#L137)

## Calls

- [`window_remove_ref`](/en/tmux/3.2a/reference/c-function-window_remove_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window.c#L199)

## Referenced by

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

## Referenced declarations

- [`winlink.window`](/en/tmux/3.2a/reference/c-struct-winlink-window/) (attribute)
- [`winlink`](/en/tmux/3.2a/reference/c-struct-winlink/) (struct)
- [`window.winlinks`](/en/tmux/3.2a/reference/c-struct-window-winlinks/) (attribute)
- [`winlinks`](/en/tmux/3.2a/reference/c-struct-winlinks/) (struct)
