So today I’ve been looking at the disk space usage and observed rather peculiar thing; my ~/.var/app/ folder was around 30GB in size.

Upon further examination I’ve observed that the disk space usage is generated by the Lbry flatpak application which stored its cache of downloaded videos there. What’s rather weird is that this app was removed from my system like month ago.

It turns out that, by default, when you uninstall the app, its configuraiton and cache will stay behind unless you specify --delete-data flag. Using the same flag after the app is removed should do the trick:

flatpak uninstall --delete-data

It will ask you for the deletion confirmation for each app you uninstalled but haven’t deleted data for.