Skip to content

Instantly share code, notes, and snippets.

@abdulhalim-cu
Created October 29, 2017 05:58
Show Gist options
  • Star 5 You must be signed in to star a gist
  • Fork 13 You must be signed in to fork a gist
  • Save abdulhalim-cu/bc3d86ec54096ba8807c4469694150a8 to your computer and use it in GitHub Desktop.
Save abdulhalim-cu/bc3d86ec54096ba8807c4469694150a8 to your computer and use it in GitHub Desktop.
How to remove Odoo from Ubuntu
* Stop Server
* Remove all odoo files
* Remove postgresql from system
STOP SERVER
sudo service odoo stop
or sudo service odoo-server stop (if odoo-server instead of odoo)
REMOVE ALL ODOO FILES
sudo rm -R /opt/odoo
REMOVE CONFIG FILES
sudo rm -f /etc/odoo.conf
sudo rm -f /etc/odoo/odoo.conf (if any)
sudo rm -f /etc/odoo-server.conf (if any)
sudo update-rc.d -f odoo remove
sudo update-rc.d -f odoo-server remove (if odoo-server instead of odoo)
sudo rm -f /etc/init.d/odoo (or odoo-server)
REMOVE USER AND USER GROUP
sudo userdel -r postgres
sudo groupdel postgres
REMOVE DATABASE
sudo apt-get remove postgresql -y
sudo apt-get --purge remove postgresql\* -y
sudo rm -rf /etc/postgresql/
sudo rm -rf /etc/postgresql-common/
sudo rm -rf /var/lib/postgresql/
@Takerman
Copy link

Takerman commented Jul 2, 2018

sudo apt-get remove --purge odoo

@Ali-mughal
Copy link

what is meant by this command sudo apt-get remove --purge odoo

@yuenhoe
Copy link

yuenhoe commented Apr 7, 2020

what is meant by this command sudo apt-get remove --purge odoo

This is the opposite of sudo apt-get install
It's just simply means remove odoo

@arghanath007
Copy link

How to know for sure it is completed removed from my system? Any command to check that? Like python --version, if python is completed uninstalled then it will give an error something like that.

@loveyandex
Copy link

sudo apt-get remove --purge odoo

@arghanath007
Copy link

That's the comment to remove it and not check if it is removed or not.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment