How to start anew on a running Raspbian

Dear friends,
after a first go at installing HA on a Raspbian Buster Lite plus all prerequisites and the docker system I wished to completely start anew and therefore uninstalled docker and tried to find all traces of HA/hass* then reinstalled docker and ran the steps at the usual guide https://www.home-assistant.io/hassio/installation/#alternative-install-home-assistant-supervised-on-a-generic-linux-host

Much to my surprise the “new” HA that came up had the Lovelace UI, devices and addons of the previous installation.

I therefore am missing where does the system store it’s config on the Raspbian filesystem.

In other words is there a guide to completely wipe out a dockerized HA and its minions :slight_smile: from a running Raspbian/Linux system?

Help please?

PS BTW this new botched reinstall was in such a state that the MQTT and ESPHome addons appeared installed but were not really. Only way out has been to delete and reinstall them from within HA.

The configuration files are in /usr/share/hassio and /usr/share/homeassistant.
if you want to know where your docker containers are stored, issue ‘docker info’

Thank you very much. In my case I do not see a /usr/share/homeassistant folder

Have whipped up a dangerous and scarcly tested script to delete all of the HA traces
on my Rpi4 Raspbian buster system. Wonder if it can be useful for anyone else. Use at your own risk :slight_smile:

#!/bin/bash
# script to completely remove an home assistant installation under docker
# on a running Raspbian Buster (Debian 10) distro
# please note it implies that the ONLY DOCKER installed are related
# to HA since it will wipe away ALL docker images
#
# USE AT YOUR OWN RISK AS IT WILL MOST PROBABLY WRECK YOUR SYSTEM
# I HAVE NO CLUE WHATSOEVER IN LIFE, LINUX, DOCKER NOR HA
# YOU HAVE BEEN WARNED !!!
#
# all of this should run with superuser privileges

#### this first section stops and deletes the HA services
###
###
# get rid of  the system that restarts hassio-supervisor
systemctl stop hassio-supervisor.service
systemctl disable hassio-supervisor.service
rm /etc/systemd/system/hassio-supervisor.service
# get rid of  the system that restarts hassio-apparmor
systemctl stop hassio-apparmor.service
systemctl disable hassio-apparmor.service
rm /etc/systemd/system/hassio-apparmor.service
# now restart the systemd system
systemctl daemon-reload
systemctl reset-failed

#### this second section deletes ALL containers
###
###
#stop containers
docker container stop $(docker container ls -aq)
#remove containers
docker container rm $(docker container ls -aq)
# clean up wiping out images, networks etc
docker system prune -a
# wipe out all previous docker config
service docker stop
rm -fr /var/lib/docker/*
service docker start

# now it's time to do some spring cleaning
rm -rf /usr/share/hassio/*
rm /etc/hassio.json
rm /usr/sbin/hass*