apps/docs/content/docs/cli/dev/rm.mdx
The prisma dev rm command removes the data of one or more local Prisma Postgres databases from your file system.
prisma dev rm [options] <name>
| Argument | Description |
|---|---|
<name> | Name(s) or glob pattern(s) of the server(s) to remove |
| Option | Description | Default |
|---|---|---|
--debug | Enable debug logging | false |
--force | Stop any running servers before removing them | false |
Without --force, the command fails if any server is running.
npx prisma dev rm mydb
Remove all databases starting with mydb:
npx prisma dev rm mydb*
Stop and remove a database in one command:
npx prisma dev rm --force mydb
:::note
The rm command is interactive and includes safety prompts to prevent accidental data loss.
:::