DROP DATABASE name
The name of an existing database to remove.
This message is returned if the command is successful.
This message occurs if the specified database does not exist.
DROP DATABASE removes the catalog entries for an existing database and deletes the directory containing the data. It can only be executed by the database administrator (See the CREATE DATABASE command for details).
WARNING |
This query should NOT be executed interactively. The destroydb script should be used instead. |
DROP DATABASE statement is a PostgreSQL language extension.
Refer to the CREATE DATABASE statement for information on how to create a database.
There is no DROP DATABASE statement in SQL92.