---
url: /reference/cli/variables-unset.md
---

# variables unset

移除环境变量

## 使用

```shell
Usage: nexus variables unset [options] [key]
```

## 选项

```shell
-v, --verbose                    enable verbose mode
-e, --environment <environment>  specify the environment (see your default environment by running nexus settings list)
--non-interactive                run the command without input prompts
-h, --help                       display help for command
```

## 示例

移除环境变量 `KEY1`

```shell
nexus variables unset KEY1
```

移除 `development` 环境的环境变量 `KEY1`

```shell
nexus variables unset KEY1 -e development
```
