# LibTmux.unset_environment

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

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

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

Delete the configured entry, allowing global inheritance.

## Methods

### `unset_environment` (overload 1)

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

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

Delete an exact configured environment entry over the pinned connection, allowing global inheritance. Return `ControlResult`; scopes and execution controls follow the control `set_environment` method.

```julia
unset_environment(connection::ControlConnection, scope, name; kwargs...)
```

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

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

## Parameters

- `connection` (`LibTmux.ControlConnection`) (for `unset_environment(connection, scope, name, kwargs)`)
- `scope` (`Any`)
- `name` (`AbstractString`)
- `kwargs`
- `server` (`LibTmux.Server`) (for `unset_environment(server, scope, name, kwargs)`)
