# server.Server.unsetOption

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

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

Remove a server-scope option.

## Examples

```ts
await server.unsetOption("escape-time");
```

## 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 server option

| Language | Equivalent |
| --- | --- |
| Python | [`libtmux.Server.unset_option`](/en/py/latest/reference/libtmux-server-unset_option/) (method) |
| Lua | [`libtmux.Server:unset_option`](/en/lua/latest/reference/libtmux-server-unset_option/) (method) |
| Rust | [`server.Server.unset_option`](/en/rs/latest/reference/server-server-unset_option/) (method) |
| Go | [`tmux.Server.UnsetOption`](/en/go/latest/reference/tmux-server-unsetoption/) (method) |
| Java | reached through `Server.options`, whose `Options` carries the write |
| C# | reached through `Server.Options`, whose `TmuxOptions` carries the write |
| C++ | no equivalent on `Server` |
| 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#.
