# libtmux:unset-environment

- **Package:** libtmux
- **Language:** Common Lisp
- **Kind:** function
- **Source:** https://github.com/libtmux/libtmux-lisp/blob/c2e5fc4ed3befda21f45dfa5d5868c38fd138311/src/configuration-operations.lisp#L243
- **Public owner:** libtmux
- **Page:** https://libtmux.org/en/lisp/latest/reference/libtmux-unset-environment/

```
(unset-environment client name &key scope target cancel-token timeout output-limit)
```

Delete NAME from one raw tmux environment table and return its outcome.
SCOPE/TARGET follow SET-ENVIRONMENT. Absence remains tmux's native idempotent
unset behavior. This is distinct from REMOVE-ENVIRONMENT's tombstone; use
SET-ENVIRONMENT to store a present value.

See also: `libtmux:remove-environment`, `libtmux:set-environment`.

## Parameters

- `client`
- `name`
- `scope?`
- `target?`
- `cancel-token?`
- `timeout?`
- `output-limit?`

## tmux command

The tmux commands behind `unset-environment`.

- [`set-environment`](/en/tmux/latest/manual/set-environment/)

## tmux C API

The C declarations in tmux that implement these commands.

- [`cmd_set_environment_entry`](/en/tmux/latest/reference/c-variable-cmd_set_environment_entry/) (attribute)
- [`cmd_set_environment_exec`](/en/tmux/latest/reference/c-function-cmd-set-environment-c-cmd_set_environment_exec/) (function)

## Guides

Pages that discuss `unset-environment`.

- [Explicit operations](/en/lisp/latest/guides/operations/)
