Created
July 29, 2022 03:00
-
-
Save Kahtaf/814c53231309ac1ea403d82969360b41 to your computer and use it in GitHub Desktop.
Uninstall Home Assistant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Stop Home Assistant services | |
sudo systemctl stop hassio-supervisor.service && \ | |
sudo systemctl stop hassio-apparmor.service && \ | |
sudo systemctl disable hassio-supervisor.service && \ | |
sudo systemctl disable hassio-apparmor.service && \ | |
sudo rm -rf /etc/systemd/system/hassio-supervisor.service && \ | |
sudo rm -rf /etc/systemd/system/hassio-apparmor.service | |
# Remove Home Assistant directories | |
sudo rm -rf /usr/sbin/hassio-supervisor && \ | |
sudo rm -rf /usr/sbin/hassio-apparmor && \ | |
sudo rm -rf /usr/share/hassio/ | |
# Remove all Docker images, volumes and networks | |
docker kill $(docker ps -q) && \ | |
docker rm $(docker ps -a -q) && \ | |
docker rmi $(docker images -q) && \ | |
docker volume rm $(docker volume ls -q) && \ | |
docker network prune && \ | |
docker system prune -a |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment