sudo apt-get --purge remove postgresql
sudo apt-get purge postgresql*
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common
sudo apt-get --purge remove postgresql postgresql-*
sudo apt-get --purge remove postgresql postgresql-doc postgresql-common
sudo apt-get --purge remove postgresql
Follow the commands:
sudo apt-get --purge remove postgresql
List all postgres related packages:
dpkg -l | grep postgres
remove all the above listed packages using the command :
apt-get --purge remove package1 package2 ..
Confirm all the files and folders related to postgres/postgresql are deleted using the command :
whereis postgres
whereis postgresql
Remove all the files and folders listed using rm command.
Delete the user postgres using the command :
userdel -f postgres
happy coding :)
Code Example |
---|
:: linux screen kill attached session |
Shell :: delete .git folder |
:: install auth in laravel 8 |
Shell :: list all ppa repository ubuntu |
Shell :: |
:: |
:: |
Shell :: computer running linux |
:: |
Shell :: |
:: |
:: Column count of mysql.proc is wrong. Expected 21, found 20. Created with MariaDB 100145, now running 100415. Please use mysql_upgrade to fix this error |
Shell :: git config remote.origin.url |
Shell :: |
Shell :: how to change account in git bash |
:: |
:: |
:: |
:: |
Shell :: |
Shell :: |
Shell :: Jwt Authentication error Argument 3 passed to LcobucciJWTSignerHmac::doVerify() |
:: |
:: how to stop a port from listening |
Shell :: git eliminar rama local |
Shell :: |
Shell :: bash install kubectl |
:: show all processes linux |
:: please provide a valid cache path error |
:: add changes to last commit |