HA OS Raspberry PI Out of disk space

I’m running out of space on my SD card. This has not been a problem until I noticed my data use increased significantly in the past few months. I’ve tried to search on the forum and reddit but most solutions talked about ubiquti or containers or etc or had no solution. I want to be able to delete whatever has filled up the space but cannot track down the large files. My database and backups are in check.
Here is my data use. I think it is related to core or supervisor updates.

Here is data use through terminal in HA:

➜  ~ du -h -d 1 /        
0       /sys
505.2M  /var
0       /proc
12.0K   /home
4.0K    /media
4.0K    /srv
0       /dev
2.3M    /etc
4.0K    /opt
3.3M    /bin
820.0K  /sbin
76.0K   /tmp
4.0K    /mnt
14.5M   /root
628.0K  /run
312.5M  /usr
8.3M    /lib
4.0K    /addon_configs
4.0K    /share
12.0K   /ssl
40.0K   /data
86.4M   /homeassistant
38.2M   /backup
4.0K    /addons
4.0K    /lib64
10.1M   /package
52.0K   /command
982.5M  /

This command will sort by size:

du -h -d 1 / | sort -hr

You can safely delete home-assistant_v2.db, unless the history is important to you. I don’t see a /backup folder??

Once you get some free space, you should install the Samba Share add-on. Then you can access the file structure from Windows Explorer.

1 Like

Are you using MariaDB and/or InfluxDB?

MariaDB is used to store short term data and can be purged with the recorder.purge action call from developer tools. Remember to repack the DB also to actually gain the benefit of the purge.

InfluxDB is a bit harder to manage, because there is no purge command.
I had a huge InfluxDB at one time and instead of cleaning it up I simply delete the addon with the option to permanently delete the data also. After that I reinstalled it and then looked into managing it better in the future.

No neither. I forgot to add. It’s a very minimal installation only really controlling some lights. It’s my tinker toy lol