# window.Window.unsetOption

- **Module:** window
- **Package:** libtmux
- **Language:** TypeScript
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-ts/blob/073b9d7dedad900bff6f5ec0ea47794e40225870/packages/libtmux/src/window.ts#L269
- **Page:** https://libtmux.org/en/ts/latest/reference/window-window-unsetoption/

```
unsetOption(name: string): Promise<void>
```

Remove an option from this window.

## Examples

```ts
await window.unsetOption("automatic-rename");
```

## Parameters

- `name` (`string`)

## tmux command

The tmux commands behind `unsetOption`.

- [`set-option`](/en/tmux/latest/manual/set-option/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_set_option_entry`](/en/tmux/latest/reference/c-variable-cmd_set_option_entry/) (attribute)
- [`cmd_set_option_exec`](/en/tmux/latest/reference/c-function-cmd-set-option-c-cmd_set_option_exec/) (function)

## tmux options

Settings for the server, sessions, windows and panes, with their types, defaults and allowed values.

- [Options](/en/tmux/latest/catalog/options/) (option)

## In other ports

Unset a window option

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Window.unset_option`](/en/py/latest/reference/libtmux-window-unset_option/) (method) |
| Lua | [`libtmux.Window:unset_option`](/en/lua/latest/reference/libtmux-window-unset_option/) (method) |
| Rust | [`window.Window.unset_option`](/en/rs/latest/reference/window-window-unset_option/) (method) |
| Go | [`tmux.Window.UnsetOption`](/en/go/latest/reference/tmux-window-unsetoption/) (method) |
| Java | reached through `Window.options`, whose `Options` carries the write |
| C# | reached through `Window.Options`, whose `TmuxOptions` carries the write |
| C++ | [`libtmux::Window::unset_option`](/en/cxx/latest/reference/libtmux-window-unset_option/) (method) |
| Swift | [`Server.unsetOption(_:scope:)`](/en/swift/latest/reference/server-unsetoption(_-scope-)/) (method) |

No equivalent is recorded in Ruby, PowerShell, Julia, Elixir, Kotlin, Scala or F#.
