# window.settings.Window.unset_option

- **Module:** window.settings.Window
- **Package:** libtmux
- **Language:** Rust
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-rs/blob/8a648c0894dfffc9303583f753b6c8ae01f2fe76/crates/libtmux/src/window/settings.rs#L137
- **Page:** https://libtmux.org/reference/rs/window-settings-window-unset_option/

```
window.settings.Window.unset_option(self, name: &str) -> Result<(), Error>
```

Remove one option, restoring whatever it inherits.

# Errors

Returns an error when tmux rejects the name.

Returns [`crate::Error::OptionScopeMismatch`] when tmux keeps the
option in another of its tables.
