cyb3rl00m / safe-disk-cleaner
git clone https://github.com/cyb3rl00m/safe-disk-cleaner.git
v1.1.1 Β· 3d ago
See where your disk space went β and understand what is safe to delete. GTK 4 app for Ubuntu and systemd distros.
+3
stars, 24h Β· #8,473
+65
stars, 7 days Β· #3,160
+65
stars, 30 days Β· #10,141
65
β
total Β· +65% this week
1
forks Β· 1 open issues
Star history (as recorded here)
LanguagePython
LicenseMIT
Created2026-10-16 (7d ago)
Last push3d ago
Watchers0
OwnerUser
Links
README excerpt
# Safe Disk Cleaner **See where your disk space went β and understand what is safe to delete.** Install Β· What it cleans Β· How it keeps your system safe Β· FAQ Β· Credits Β· Contributing Linux quietly keeps gigabytes you'll never need: old kernels, downloaded update files, old Snap versions, Flatpak runtimes nothing uses anymore, years of picture previews for files you deleted long ago. Most cleaners show you a wall of checkboxes and hope you know what they mean. **Safe Disk Cleaner explains every single item** β what it is, why it grew, whether deleting it is safe, and exactly which command will run β and then lets *you* decide. ## Highlights - π§ **Explains everything in plain language.** Every category answers four questions: *What is it? Why does it get so big? Is it safe to delete? What will this app do?* - π‘οΈ **Safe by design.** Only items marked *Safe* are pre-selected. The kernel you're running and a fallback kernel are always kept. Nothing is deleted until you confirm. - π **Smarter, not just wider.** It reads every picture preview and removes only those whose file no longer exists. Previews of USB drives that aren't plugged in are kept. - π¦ **Made for modern Linux.** Old Snap revisions and unused Flatpak runtimes β often several GB on Ubuntu β are first-class categories. - π **Locks apps that are running.** Firefox's cache can't be deleted while Firefox is open. - π **Stops the problem from coming back.** One click caps the journal size for good, or sets how many Snap versions are kept. - π **Shows real results.** After cleaning it reports how much free space your disks actually gained. - π **Nothing hidden.** "Show the exact commands" reveals every command before it runs. ## What it cleans | | Category | What it is | Label | |:-:|---|---|---| | π§ | **Old kernels** | Previous Linux kernels left behind by updates | Safe | | β¬οΈ | **Downloaded update files** | Package files APT / DNF / pacman / zypper kept after installing | Safe | | π¦ | **Packages no longer needed** | Dependencies nothing uses anymore | Usually safe | | π | **Old Snap versions** | Disabled revisions kept only for `snap revert` | Safe | | π§© | **Unused Flatpak runtimes** | Runtimes no installed app needs | Safe | | π | **System journal** | Old entries of the system log β shrink it and cap it permanently | Safe | | β οΈ | **Crash reports & core dumps** | Memory snapshots of crashed programs | Safe | | ποΈ | **Old log files** | Rotated copies like `syslog.1` and `kern.log.2.gz` | Safe | | πΌοΈ | **Picture previews** | Thumbnails β especially of files that no longer exist | Safe | | π | **App caches in your home** | Every folder in `~/.cache`, each explained on its own | Per folder | | π± | **Flatpak & Snap app caches** | Caches of sandboxed apps | Usually safe | | ποΈ | **Trash** | Every item with its original location and deletion date | Review first | **What the labels mean** - **Safe** β nothing you need is lost; it is recreated or re-downloaded if it's ever needed again. - **Us