After uninstalling an app, residual files often remain in ~/.config, ~/.cache, and ~/.local/share. Add an option (or post-uninstall prompt) to detect and remove these leftovers.
For Flatpak this includes offering flatpak uninstall --delete-data. For other types, match by app id / common naming conventions and let the user confirm before deleting.
After uninstalling an app, residual files often remain in
~/.config,~/.cache, and~/.local/share. Add an option (or post-uninstall prompt) to detect and remove these leftovers.For Flatpak this includes offering
flatpak uninstall --delete-data. For other types, match by app id / common naming conventions and let the user confirm before deleting.