# session.settings.Session.unset_option

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

```
session.settings.Session.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.
