Loading…

How to uninstall PostgreSQL Ubuntu?

To uninstall, PostgreSQL in Ubuntu, follow these steps:

  • At first, check Postgres related folders using

               ubuntu@ip:~/anvesh$ dpkg -l | grep Postgres

  • Now command the following to remove the remaining files

              ubuntu@ip:~/anvesh$ sudo apt-get --purge remove PostgreSQL PostgreSQL-doc

  • Again check Postgres related folders
  • Remove all the pending folders using the following

              ubuntu@ip:~/anvesh$ sudo apt-get --purge remove postgresql postgresql-client-9.6 postgresql-common pgdg-keyring

  • Now PostgreSQL is uninstalled.

Suggest An Answer

No suggestions avaliable!

Latest post from PostgreSQL Interview Questions

Ask Question