# winlink_remove

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L196
- **Page:** https://libtmux.org/en/tmux/latest/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/latest/reference/c-function-server_link_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/server-fn.c#L279)
- [`session_destroy`](/en/tmux/latest/reference/c-function-session_destroy/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L223)
- [`session_detach`](/en/tmux/latest/reference/c-function-session_detach/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L351)
- [`session_group_synchronize1`](/en/tmux/latest/reference/c-function-session-c-session_group_synchronize1/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L687)
- [`session_renumber_windows`](/en/tmux/latest/reference/c-function-session_renumber_windows/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/session.c#L745)
- [`spawn_window`](/en/tmux/latest/reference/c-function-spawn_window/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/spawn.c#L136)

## Calls

- [`window_remove_ref`](/en/tmux/latest/reference/c-function-window_remove_ref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window.c#L202)

## Referenced declarations

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