# Server.unsetEnvironment(_:in:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Environment.swift#L87
- **Page:** https://libtmux.org/reference/swift/server-unsetenvironment(_-in-)/

```
Server.unsetEnvironment(_:in:)(name: String, in: EnvironmentScope) -> TmuxReply
```

Unsets a variable, leaving no trace of it.

Different from ``removeEnvironment(_:in:)``: an unset variable is simply
gone, where a removed one is still listed so that new processes are
started without it.

## Raises

- `TmuxError`
