This page in other versions: Unsupported versions: 6.5

Destroying a Database

If you are the database administrator for the database mydb, you can destroy it using the following UNIX command:

% destroydb dbname
This action physically removes all of the UNIX files associated with the database and cannot be undone, so this should only be done with a great deal of forethought.

It is also possible to destroy a database from within an SQL session by using

> drop database dbname

Submit correction

If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.

Privacy Policy | About PostgreSQL
Copyright © 1996-2016 The PostgreSQL Global Development Group