# libtmux:remove-environment

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

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

Store tmux's removal marker for NAME and return its COMMAND-OUTCOME.
SCOPE/TARGET follow SET-ENVIRONMENT. A removal marker is distinct from absence
and from a present empty string. UNSET-ENVIRONMENT deletes the entry instead.
Never retries the mutation.

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

## Parameters

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

## tmux command

The tmux commands behind `remove-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 `remove-environment`.

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