Yeah, uninstalling flatpak and snap packages you don’t use anymore is a good start.
You may use a tool like ncdu to « spot » the most occupied folders in your $HOME first, and see what you may safely remove.
sudo apt install ncdu
then from a terminal just launch
ncdu
it’s a semi-graphical app’ very convenient to use ( with keys, arrows, enter, ? for help, q for quit )
Then also « spot » in the root tree what are the most occupied folders ( generally /usr/lib
where programs are stored ).
Commands like
sudo apt clean
sudo apt autoclean
sudo apt autoremove --purge
will help removing obsolete and unused packages or residual config’s at system level.
This command
dpkg -l | grep ^rc
will list residual config’s - generally related to kernels - that can be removed by
sudo dpkg -P $(dpkg -l | awk '/^rc/{print $2}')
Thumbnails for pictures are also continually stored - even if original files have been removed which is a stupid thing. You may remove thumbnails older than 7 days with that command :
find ~/.cache/thumbnails -type f -atime +7 -delete
To check occupation of partitions :
df -Thx squashfs -x tmpfs -x devtmpfs
To get a larger view on your disk and partitions ( from an almost full screen terminal because the answer is a large table ) :
lsblk -fe7 -o +size
and last but not least, to get the « nodal » occupation of a partition :
df -ix squashfs -x tmpfs -x devtmpfs
if you see values close to 100% here ↑, there is emergency for cleaning - even if the physical occupation ( previously returned by df -Th… ) was ok.