Back to Prisma

rm

apps/docs/content/docs/cli/dev/rm.mdx

latest1.2 KB
Original Source

The prisma dev rm command removes the data of one or more local Prisma Postgres databases from your file system.

Usage

bash
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

npm
npx prisma dev rm mydb

Remove multiple databases with a pattern

Remove all databases starting with mydb:

npm
npx prisma dev rm mydb*

Force remove a running database

Stop and remove a database in one command:

npm
npx prisma dev rm --force mydb

:::note

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

:::