# dflow apps:env:unset

> Remove non-secret variables and wait for deploy when the app is running.

Web page: /docs/cli/apps/apps-env-unset/

This removes one or more environment variables that are not secrets. A key that is already absent is left alone. `apps:env:remove` is the same command. After an image exists, it waits for a new deploy unless you pass `--wait=false`.

```bash
dflow apps:env:unset APP KEY [KEY...]
```

## Flags

`--wait` defaults to true. `--wait-timeout` defaults to 5m. `apps:env:remove` is the same command.

## What you see

Each key is removed on its own. A key that is already absent is left alone. Before the first deploy, the last key prints `status stored`, or `status unchanged` when nothing changed. After an image exists, the command waits for the deploy operation to finish unless `--wait=false`.

## When it fails

A missing application exits 3. A name that starts with `DFLOW_`, and the names `PORT` and `KUBERNETES_SERVICE_HOST`, are reserved and exit 1.
