# rm (/docs/cli/dev/rm)

> For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL.

Remove local Prisma Postgres servers

Location: CLI > dev > rm

The `prisma dev rm` command removes the data of one or more [local Prisma Postgres](https://www.prisma.io/docs/postgres/database/local-development) databases from your file system.

## Usage [#usage]

```bash
prisma dev rm [options] <name>
```

## Arguments [#arguments]

| Argument | Description                                           |
| -------- | ----------------------------------------------------- |
| `<name>` | Name(s) or glob pattern(s) of the server(s) to remove |

## Options [#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 [#examples]

### Remove a specific database [#remove-a-specific-database]

  

#### bun

```bash
bunx prisma dev rm mydb
```

#### pnpm

```bash
pnpm dlx prisma dev rm mydb
```

#### yarn

```bash
yarn dlx prisma dev rm mydb
```

#### npm

```bash
npx prisma dev rm mydb
```

### Remove multiple databases with a pattern [#remove-multiple-databases-with-a-pattern]

Remove all databases starting with `mydb`:

  

#### bun

```bash
bunx prisma dev rm mydb*
```

#### pnpm

```bash
pnpm dlx prisma dev rm mydb*
```

#### yarn

```bash
yarn dlx prisma dev rm mydb*
```

#### npm

```bash
npx prisma dev rm mydb*
```

### Force remove a running database [#force-remove-a-running-database]

Stop and remove a database in one command:

  

#### bun

```bash
bunx prisma dev rm --force mydb
```

#### pnpm

```bash
pnpm dlx prisma dev rm --force mydb
```

#### yarn

```bash
yarn dlx prisma dev rm --force mydb
```

#### npm

```bash
npx prisma dev rm --force mydb
```

> [!NOTE]
> The `rm` command is interactive and includes safety prompts to prevent accidental data loss.

## Related pages

- [`ls`](https://www.prisma.io/docs/cli/dev/ls): List available local Prisma Postgres servers
- [`start`](https://www.prisma.io/docs/cli/dev/start): Start one or more stopped local Prisma Postgres servers
- [`stop`](https://www.prisma.io/docs/cli/dev/stop): Stop local Prisma Postgres servers