https://github.com/boredsquirrel/flatpak-trash-remover
Script removing folders with no corresponding Flatpak app installed. Removal is interactive.
https://github.com/boredsquirrel/flatpak-trash-remover
Last synced: 3 months ago
JSON representation
Script removing folders with no corresponding Flatpak app installed. Removal is interactive.
- Host: GitHub
- URL: https://github.com/boredsquirrel/flatpak-trash-remover
- Owner: boredsquirrel
- License: gpl-3.0
- Created: 2023-04-08T20:59:18.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2025-01-19T13:36:52.000Z (over 1 year ago)
- Last Synced: 2025-03-22T02:15:12.350Z (over 1 year ago)
- Language: Shell
- Size: 26.4 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Flatpak-trash-remover
Flatpak apps store all their data (if they are made well) in `~/.var/app/org.APP.NAME`. Those folders may stay after uninstallation, as you need to use `flatpak uninstall --delete-data APP`. GUI Software stores have a dialog, but you may still miss it.
This tool searches for appdata folders where there is no matching app, and prompt you to remove it.
Install:
```
curl https://github.com/boredsquirrel/Flatpak-trash-remover/raw/main/flatpak-trash-remover -o ./flatpak-trash-remover
run0 sh -c '
mkdir /var/usrlocal/bin || mkdir /usr/local/bin
mv ./flatpak-trash-remover /var/usrlocal/bin
chown -R root:root /var/usrlocal/bin
chcon -R system_u:object_r:bin_t:s0 /var/usrlocal/bin #on SELinux systems
chmod +x /usr/local/bin/flatpak-trash-remover
'
```
Usage:
```
~ ❯❯❯ flatpak-trash-remover
=====================================================
Flatpak Trash Remover
Cleanup leftover folders of uninstalled Flatpak apps
=====================================================
Progress: 27/90
The app com.xnview.XnViewMP is not installed. Do you want to delete its folder? (Y/n): y
...
Progress: 90/90
All Apps checked.
```