Home postgresql How do I delete the Postgres database?

How do I delete the Postgres database?




If the database user is www-data , and the database is database , then you can do this:

$ sudo -u www-data dropdb database

More about the dropdb utility and the DROP DATABASE command.

Answer 1, authority 100%

From psql client:

postgres = # drop database database_name;

Programmers, Start Your Engines!

Why spend time searching for the correct question and then entering your answer when you can find it in a second? That's what CompuTicket is all about! Here you'll find thousands of questions and answers from hundreds of computer languages.

Recent questions