# LibTmux.unset_option

- **Module:** LibTmux
- **Package:** LibTmux
- **Language:** Julia
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/configuration.jl#L283
- **Page:** https://libtmux.org/en/julia/latest/reference/libtmux-unset_option/

```
unset_option(
    connection::LibTmux.ControlConnection,
    scope,
    name::AbstractString;
    index,
    kwargs...
)

unset_option(server::LibTmux.Server, scope, name::AbstractString; index, kwargs...)
```

## Methods

### `unset_option` (overload 1)

```julia
unset_option(
    connection::LibTmux.ControlConnection,
    scope,
    name::AbstractString;
    index,
    kwargs...
)
```

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/control_options.jl#L261).

Unset an exact option or sparse entry on the pinned daemon, restoring inheritance/defaults.

### `unset_option(server::LibTmux.Server, scope, name::AbstractString; index, kwargs...)`

[Source](https://github.com/libtmux/libtmux-julia/blob/f3da513be1225d36d5854cd8db5972c01857578e/src/configuration.jl#L289).

Remove a local option or sparse entry, restoring inheritance. Unsetting a built-in global option restores its tmux default. Return `CommandResult`.

```julia
unset_option(server, scope, name; index=nothing, kwargs...)
```

## Parameters

- `connection` (`LibTmux.ControlConnection`) (for `unset_option(connection, scope, name, index, kwargs)`)
- `scope` (`Any`)
- `name` (`AbstractString`)
- `index`
  Default: `nothing`.
- `kwargs`
- `server` (`LibTmux.Server`) (for `unset_option(server, scope, name, index, kwargs)`)
