Table of Contents
[PostgreSQL Linux] Remove installed PostgreSQL in opt dir
I installed PostgreSQL through the installation file, so the installation directory is
/opt/PostgreSQL/10
I tried
sudo apt-get --purge remove postgresql*
but this did not work for me.
In my case uninstaller was under /opt/PostgreSQL/10
, so I cd here and run
sudo ./uninstall-postgresql
and problem solved
Hope that will help you
I have consulted the workaround here