1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-27 19:55:26 +02:00
tldr/pages/common/dropdb.md
Managor 7b752dc4d3
*: fix curly brace syntax, nested placeholders and mismatched brackets (#17210)
* Update rpicam-still.md

* Update jello.md

* Update dropdb.md

* Update aws-eks.md

* Update sfdisk.md

* Update hyperfine.md

* Update quarto.md

* Update for.md

* Update coproc.md

* Update vagrant-validate.md

* Update kubetail.md

* Update kubetail.md

* Update pstoedit.md

* Update highlight.md

* Update linode-cli-linodes.md

* Update swig.md

* Update phpcbf.md

* Update unzipsfx.md

* Update d8.md

* Update trdsql.md

* Update keyd.md

* Update mamba-repoquery.md

* Update pages/common/jello.md

* Update coproc.md

* Apply suggestions from code review

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update pages/common/for.md

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

* Update for.md

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2025-07-15 11:17:54 -07:00

37 lines
962 B
Markdown

# dropdb
> Remove a PostgreSQL database.
> A simple wrapper around the SQL command `DROP DATABASE`.
> More information: <https://www.postgresql.org/docs/current/app-dropdb.html>.
- Destroy a database:
`dropdb {{dbname}}`
- Request a verification prompt before any destructive actions:
`dropdb {{[-i|--interactive]}} {{database_name}}`
- Connect with a specific username and destroy a database:
`dropdb {{[-U|--username]}} {{username}} {{dbname}}`
- Force a password prompt before connecting to the database:
`dropdb {{[-W|--password]}} {{dbname}}`
- Suppress a password prompt before connecting to the database:
`dropdb {{[-w|--no-password]}} {{database_name}}`
- Specify the server host name:
`dropdb {{[-h|--host]}} {{host}} {{database_name}}`
- Specify the server port:
`dropdb {{[-p|--port]}} {{port}} {{database_name}}`
- Attempt to terminate existing connections before destroying the database:
`dropdb {{[-f|--force]}} {{database_name}}`