uninstall postgres ubuntu 18.04 code example
Example 1: remove postgresql ubuntu
sudo apt-get --purge remove postgresql
sudo apt-get purge postgresql*
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common
Example 2: désinstaller postgresql linux
sudo aptitude purge postgresql postgresql-common
sudo dpkg -P postgresql-8.4
sudo find / -name postgresql -exec rm -Rf {} \;
sudo find / -name pgsql -exec rm -Rf {} \;
sudo find / -name psql -exec rm -Rf {} \;
sudo userdel postgres