I try dropdb mydbname in shell. It do not give any error. But still when I call \l it is still there.
I logged into the postgres server using sudo -u postgres psql.
Other than my main concern I need to know how to go into the database other than just staying outside of it. (as a example if I want to list the tables)
In order to drop database you can use SQL command (but I do not understand why dropdb didn’t work)
DROP DATABASE mydbname:It would be good to check if database is not used:
The
sudo -u postgres psqlconnects to postgres database. You need to specify database:sudo -u postgres psql mydbnameand then you can use metdata commands like \d, \dt, \dv, …