rm

Remove 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

ArgumentDescription
<name>Name(s) or glob pattern(s) of the server(s) to remove

Options

OptionDescriptionDefault
--debugEnable debug loggingfalse
--forceStop any running servers before removing themfalse

Without --force, the command fails if any server is running.

Examples

Remove a specific database

npx prisma dev rm mydb

Remove multiple databases with a pattern

Remove all databases starting with mydb:

npx prisma dev rm mydb*

Force remove a running database

Stop and remove a database in one command:

npx prisma dev rm --force mydb

The rm command is interactive and includes safety prompts to prevent accidental data loss.

On this page