# cmdq_remove

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L454
- **Page:** https://libtmux.org/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_remove/

```c
static void cmdq_remove(struct cmdq_item *item)
```

## Parameters

- `item` (`struct cmdq_item *`)

## Called by

- [`cmdq_next`](/en/tmux/latest/reference/c-function-cmdq_next/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L798)
- [`cmdq_remove_group`](/en/tmux/latest/reference/c-function-cmd-queue-c-cmdq_remove_group/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L480)

## Calls

- [`cmd_list_free`](/en/tmux/latest/reference/c-function-cmd_list_free/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L459)
- [`cmdq_free_state`](/en/tmux/latest/reference/c-function-cmdq_free_state/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L460)
- [`server_client_unref`](/en/tmux/latest/reference/c-function-server_client_unref/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-queue.c#L457)

## Referenced declarations

- [`cmdq_item.client`](/en/tmux/latest/reference/c-struct-cmdq_item-client/) (attribute)
- [`cmdq_item.cmdlist`](/en/tmux/latest/reference/c-struct-cmdq_item-cmdlist/) (attribute)
- [`cmdq_item`](/en/tmux/latest/reference/c-struct-cmdq_item/) (struct)
- [`cmdq_list.list`](/en/tmux/latest/reference/c-struct-cmdq_list-list/) (attribute)
- [`cmdq_item.name`](/en/tmux/latest/reference/c-struct-cmdq_item-name/) (attribute)
- [`cmdq_item.queue`](/en/tmux/latest/reference/c-struct-cmdq_item-queue/) (attribute)
- [`cmdq_item.state`](/en/tmux/latest/reference/c-struct-cmdq_item-state/) (attribute)
