# dflow environments:delete

> Delete an empty environment and wait.

Web page: /docs/cli/project/environments-delete/

This deletes an empty environment and waits. An environment that still has applications is refused. Delete those applications first.

```bash
dflow environments:delete NAME
```

## Flags

`--wait` defaults to true. `--wait-timeout` defaults to 5m.

## What you see

The operation finishes.

## When it fails

An environment that still has applications is refused.
