Skip to content

Instantly share code, notes, and snippets.

@Kahtaf
Created July 29, 2022 03:00
Show Gist options
  • Save Kahtaf/814c53231309ac1ea403d82969360b41 to your computer and use it in GitHub Desktop.
Save Kahtaf/814c53231309ac1ea403d82969360b41 to your computer and use it in GitHub Desktop.
Uninstall Home Assistant
# 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