I am new to postgres and I think I messed up my postgresql, so I want to delete postgresql so that I can reinstall it. The problem is that when I run the following command, the folder /etc/postgresql/9.5 still exists.
sudo apt-get remove postgresql
I also tried:
sudo apt-get --purge remove postgresql
But this did not do the trick either. Does anyone have an idea of how to delete postgresql completely?