# dflow db:delete

> Delete a managed database after confirming its name.

Web page: /docs/cli/data/db-delete/

This deletes a managed database after you confirm its name. `Confirm-Name` is that service name. The data on the service is removed. This command does not take a new backup. A bucket copy from an earlier backup stays. If an application's `dflow.json` still names the database, pass `--force` to unlink those applications first.

```bash
dflow db:delete NAME --confirm-name NAME
```

## Flags

`--confirm-name` is the service name. When it is omitted, the command asks you to type the name. `--force` unlinks applications whose `dflow.json` still names this database, then deletes it. `--wait` defaults to true.

## What you see

The terminal prints the operation. The service data is deleted. A bucket copy from an earlier backup stays.

## When it fails

A database that an application's `dflow.json` still names is refused until you pass `--force`. The error lists those applications. Exit 6 is that precondition. Exit 1 is a typed name that does not match.
