postgres remove database
DROP DATABASE IF EXISTS database_name;
postgres remove database
DROP DATABASE IF EXISTS database_name;
how to hard drop database in postgres
It means another user is accessing the database. Simply restart PostgreSQL. This command will do the trick
root@kalilinux:~#sudo service postgresql restart
Then try dropping the database:
postgres=# drop database test_database;
This will do the trick.
postgres delete database
DROP DATABASE db_name;
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us