# options_remove_or_default

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1275
- **Page:** https://libtmux.org/en/tmux/3.7c/reference/c-function-options_remove_or_default/

```c
int options_remove_or_default(struct options_entry *o, int idx, char **cause)
```

## Parameters

- `o` (`struct options_entry *`)
- `idx` (`int`)
- `cause` (`char **`)

## Called by

- [`cmd_set_option_exec`](/en/tmux/3.7c/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/cmd-set-option.c#L173)
- [`input_exit_rename`](/en/tmux/3.7c/reference/c-function-input-c-input_exit_rename/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/input.c#L2823)
- [`window_customize_reset_option`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_reset_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1188)
- [`window_customize_unset_option`](/en/tmux/3.7c/reference/c-function-window-customize-c-window_customize_unset_option/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/window-customize.c#L1169)

## Calls

- [`options_default`](/en/tmux/3.7c/reference/c-function-options_default/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1284)
- [`options_remove`](/en/tmux/3.7c/reference/c-function-options-c-options_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/e476c1230b958df0cb12977517d24b3dc931375b/options.c#L1286)

## Other function references

- [`options_array_set`](/en/tmux/3.7c/reference/c-function-options_array_set/) (function)

## Referenced declarations

- [`global_options`](/en/tmux/3.7c/reference/c-variable-global_options/) (attribute)
- [`global_s_options`](/en/tmux/3.7c/reference/c-variable-global_s_options/) (attribute)
- [`global_w_options`](/en/tmux/3.7c/reference/c-variable-global_w_options/) (attribute)
- [`options_entry`](/en/tmux/3.7c/reference/c-struct-options_entry/) (struct)
- [`options_entry.owner`](/en/tmux/3.7c/reference/c-struct-options_entry-owner/) (attribute)
- [`options_entry.tableentry`](/en/tmux/3.7c/reference/c-struct-options_entry-tableentry/) (attribute)
