Deleting a Database
The DROP DATABASE command is used to delete a database in SQL.
Syntax
DROP DATABASE <database-name>;
Example
DROP DATABASE Company;
Useful psql commands
| Command | Description |
|---|---|
| \l | Lists all of your databases |
| \c [database] | Connects to a database |
| \d | Describes the connected database |