# options_remove_or_default

- **Language:** C
- **Kind:** function
- **Source:** https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1131
- **Page:** https://libtmux.org/en/tmux/3.2a/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.2a/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/cmd-set-option.c#L157)
- [`input_exit_rename`](/en/tmux/3.2a/reference/c-function-input-c-input_exit_rename/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/input.c#L2393)
- [`window_customize_reset_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_reset_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1166)
- [`window_customize_unset_option`](/en/tmux/3.2a/reference/c-function-window-customize-c-window_customize_unset_option/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/window-customize.c#L1147)

## Calls

- [`options_default`](/en/tmux/3.2a/reference/c-function-options_default/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1140)
- [`options_remove`](/en/tmux/3.2a/reference/c-function-options-c-options_remove/) (function) [Call site](https://github.com/tmux/tmux/blob/3b929f332aafa7f1080eacc31feb11ffbb1d1841/options.c#L1142)

## Other function references

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

## Referenced declarations

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