How to uninstall OSM

From OSM Public Wiki
Revision as of 11:07, 27 September 2018 by Fernandezca (talk | contribs) (Created page with "__TOC__ This page intends to provide means to leave the environment clean and ready, assuming OSM release FOUR was installed previously. This should allow successful OSM rede...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

This page intends to provide means to leave the environment clean and ready, assuming OSM release FOUR was installed previously. This should allow successful OSM redeployments.

Removing the OSM stack

Any of the two following procedures should work.

Automatic procedure

It is possible to clean the environment by providing a flag to the OSM installer script:

 sudo ./install_osm.sh --uninstall

Manual procedure

Stop the Docker stack and remove every container:

 docker stack rm osm
 docker system prune --all --volumes

Removing packages in the system

After removing the OSM stack (either automatically or manually), remove any packages that were left:

 sudo apt remove --purge docker-ce
 sudo snap remove juju
 sudo apt remove --purge osm-devops python-osmclient