# control_remove_sub

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L1168
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-control_remove_sub/

```c
void control_remove_sub(struct client *c, const char *name)
```

## Parameters

- `c` (`struct client *`)
- `name` (`const char *`)

## Called by

- [`cmd_refresh_client_update_subscription`](/en/tmux/latest/reference/c-function-cmd-refresh-client-c-cmd_refresh_client_update_subscription/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-refresh-client.c#L55)

## Calls

- [`control_free_sub`](/en/tmux/latest/reference/c-function-control-c-control_free_sub/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/control.c#L1175)

## Referenced declarations

- [`client`](/en/tmux/latest/reference/c-struct-client/) (struct)
- [`client.control_state`](/en/tmux/latest/reference/c-struct-client-control_state/) (attribute)
- [`control_sub.name`](/en/tmux/latest/reference/c-struct-control_sub-name/) (attribute)
- [`control_state.subs`](/en/tmux/latest/reference/c-struct-control_state-subs/) (attribute)
- [`control_state.subs_timer`](/en/tmux/latest/reference/c-struct-control_state-subs_timer/) (attribute)
