# server.Server.unsetGlobalOption

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

```
unsetGlobalOption(
  scope: "session" | "window",
  name: string,
): Promise<void>
```

Remove a default, so tmux falls back to its own built-in value.

## Examples

```ts
await server.unsetGlobalOption("session", "history-limit");
```

## Parameters

- `scope` (`"session" | "window"`)
- `name` (`string`)

## tmux command

The tmux commands behind `unsetGlobalOption`.

- [`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)
