How to uninstall OSM

From OSM Public Wiki
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 enable successful OSM redeployments in the future.

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 osm docker stack and remove all unused containers, images and volumes:

 docker stack rm osm
 docker system prune --all --volumes         #this instruction will clean all volumes and images, not only the ones used by OSM

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