# dflow apps:delete

> Delete an application after you confirm its name.

Web page: /docs/cli/apps/apps-delete/

This deletes the application. The API records `application.delete`. When a cluster is connected, the worker removes the running containers and the service in front of them. You confirm by typing the application name. `--yes` is not accepted.

```bash
dflow apps:delete NAME
```

## Flags

`--confirm-name` is the application name. When you leave it off, a terminal asks you to type the name. The typed line or `--confirm-name` has to equal the stored name.

`--delete-volumes` deletes attached disks first, then the application. `--force` re-queues a delete that is stuck in `deleting`.

`--wait` and `--wait-timeout` apply. The usual global flags still apply.

## What you see

The terminal prints the application name, then the operation `id` and `status`. Exit 0 when the operation is `succeeded`. Exit 0 also for `--wait=false`, after the API accepts the delete with 202.

## When it fails

A non-terminal stdin without `--confirm-name` exits 1 before a request. A mismatch prints `error: validation: refusing to delete app NAME; confirm the name` and does not call DELETE. `--wait-timeout` below 1s or above 30m exits 1.

Exit 6 `precondition`, while a volume is still attached, names the volume and the `dflow volumes:delete` command, or mentions `--delete-volumes`.

Exit 1: usage or a name mismatch. Exit 2: auth. Exit 3: the application was not found. Exit 4: conflict. Exit 5: the operation `failed` or was `cancelled`. Exit 6 when that operation's error code is `precondition` or `rate_limited`. Exit 7: the wait ended first. Exit 10: the API could not be reached.
