How to uninstall Postgres ubuntu
In this tutorial, I will show you how to uninstall Postgres ubuntu. You can use this tutorial to uninstall Postgres on any Ubuntu version. So let’s start removing postgresql.
PostgreSQL is a powerful, open source object-relational database system. It has more than 15 years of active development and a proven architecture that has earned it a strong reputation for reliability, data integrity, and correctness. It runs on all major operating systems, including Linux, UNIX (AIX, BSD, HP-UX, SGI IRIX, Mac OS X, Solaris, Tru64), and Windows. It is fully ACID compliant, has full support for foreign keys, joins, views, triggers, and stored procedures (in multiple languages). It includes most SQL:2008 data types, including INTEGER, NUMERIC, BOOLEAN, CHAR, VARCHAR, DATE, INTERVAL, and TIMESTAMP. It also supports storage of binary large objects, including pictures, sounds, or video. It has native programming interfaces for C/C++, Java, .Net, Perl, Python, Ruby, Tcl, ODBC, among others, and exceptional documentation.
Read Also: How to install Postgresql 11 on Ubuntu 18.04
Uninstall Postgres Ubuntu
You can just execute the following command to uninstall Postgres from Ubuntu.
sudo apt purge postgresql-*
The above command will uninstall postgresql and its dependencies.
You can check a list of available postgresql packages.
dpkg -l | grep postgres
ii pgdg-keyring 2018.2 all keyring for apt.postgresql.org
So, there are no postgresql packages that means it postgresql is purged properly.
Read Also: How to install PostgreSQL on Mac