How to remove Odoo from Ubuntu

How to remove Odoo from Ubuntu


Sometimes we need to remove all settings and files from our Linux system. There are some easy steps to do that and Odoo remove from ubuntu

Steps of work

Follow the below steps to remove Odoo from ubuntu:

Stop Server odoo server

sudo service odoo-server stop

Remove all odoo files
sudo rm -R /opt/odoo

Now We can Remove Configuration Files
sudo rm -f /etc/odoo-server.conf
sudo rm -f /etc/odoo.conf

If your Odoo system is a hook with startup. Then run those commands
update-rc.d -f odoo-server remove
sudo rm -f /etc/init.d/odoo-server

Delete User and User group

userdel -r postgres
groupdel postgres

Now Remove Database

sudo apt-get remove postgresql -y
sudo apt-get --purge remove postgresql\* -y
sudo rm -r -f /etc/postgresql/
sudo rm -r -f /etc/postgresql-common/
sudo rm -r -f /var/lib/postgresql/

Follow those steps and you can easily remove odoo from your ubuntu. If you have any suggestion you can email me.

Shariful Islam Nayon

Shariful Islam | Full Stack Python/Django Developer I am Linux lover self motivated software craftsman open source contributor.My interested area Data Structure,Algorithm,Big data,Machine learning Dhaka, Bangladesh


Sushil A. · September 12, 2018 at 4:20 pm

Thanks for the simple steps to remove Odoo.
One thing, you forgot is that to stop PostgreSQL service before deleting PostgreSQL user.
To stop service, we have to use,
service postgresql stop


Shariful Islam Nayon · September 13, 2018 at 4:03 pm

Thanks Sushil I will update it

vinoth · November 21, 2018 at 1:33 pm

when i deleting postgresql it shows error what happened ?

Leave a Reply

Your email address will not be published. Required fields are marked *