CLI

# hotcfg env delete

Delete one environment of a bin with every version in it.

usage

```
hotcfg env delete <bin_id> --env <env> [--yes]
```

Deletes the environment and its whole history, and purges the edge cache. The next push to it starts again at `v1`. This can't be undone; to stop serving an environment but keep its versions, use [unpublish](https://hotcfg.run/docs/cli/unpublish).

terminal

```
$ hotcfg env delete mobile-flags --env development
This deletes every version of mobile-flags in development; the next push starts again at v1.
Type the bin id to confirm: mobile-flags
✓ Deleted mobile-flags (development) and its history
  cache    edge purge queued for development
```

| Flag | Default | Description |
| --- | --- | --- |
| `--env` | required | The environment to delete. |
| `--yes` |  | Skip the confirmation. Without a terminal (in CI), `--yes` is required. |

Needs a key without bin or environment limits.

Last updated 5 November 2026
