rm
Prisma CLI v7Remove local Prisma Postgres servers
The prisma dev rm command removes the data of one or more local Prisma Postgres databases from your file system.
Usage
prisma dev rm [options] <name>Arguments
| Argument | Description |
|---|---|
<name> | Name(s) or glob pattern(s) of the server(s) to remove |
Options
| 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.
Examples
Remove a specific database
bunx prisma dev rm mydbRemove multiple databases with a pattern
Remove all databases starting with mydb:
bunx prisma dev rm mydb*Force remove a running database
Stop and remove a database in one command:
bunx prisma dev rm --force mydbThe rm command is interactive and includes safety prompts to prevent accidental data loss.
