Uninstall hassio

Hello,
I installed hassio on raspbian through docker with this install script:

https://raw.githubusercontent.com/home-assistant/hassio-build/master/install/hassio_install

How can I uninstall it?
thanks

1 Like

stop and disable the systemd service, delete the service file, and use docker commands to remove the containers.

1 Like
  1. stop services:
    sudo systemctl stop hassio-supervisor.service
    sudo systemctl stop hassio-apparmor.service

  2. disable services:
    sudo systemctl disable hassio-supervisor.service
    sudo systemctl disable hassio-apparmor.service

  3. remove services:
    sudo rm -rf /etc/systemd/system/hassio-supervisor.service
    sudo rm -rf /etc/systemd/system/hassio-apparmor.service

  4. removing folders:
    sudo rm -rf /usr/sbin/hassio-supervisor
    sudo rm -rf /usr/sbin/hassio-apparmor

  5. remove docker stuff

for i in `docker ps --format '{{ .Names }}' | grep hassio`; do docker stop $i; docker rm -f $i; done
for i in `docker ps --format '{{ .Names }}' | grep addon`; do docker stop $i; docker rm -f $i; done
docker system prune -a
2 Likes

Thanks but the ` characters are invisible. It’s better to write it as code:

for i in `docker ps --format '{{ .Names }}' | grep hassio`; do docker stop $i; docker rm -f $i; done
for i in `docker ps --format '{{ .Names }}' | grep addon`; do docker stop $i; docker rm -f $i; done
docker system prune -a
1 Like