# pane.settings.Pane.unset_option

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

```
pane.settings.Pane.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.
