logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Drop PostgreSQL Database - Remove Databases | Online Free DevTools by Hexmos

Remove PostgreSQL databases easily with Drop PostgreSQL Database. Quickly delete databases and terminate connections using this command-line tool. Free online tool, no registration required.

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}}

See Also