Every feature of CleanMate for Ubuntu
A desktop app and a terminal app (cm) that share one engine. Each module shows what it found first; your files go to the Trash, regenerable data is cleaned with the system’s own tools, and nothing runs until you confirm.
Describes CleanMate 2.7.0 for Ubuntu 22.04 to 26.10 (the desktop app needs 24.04 or later).
Looking for a BleachBit alternative for Ubuntu? See how CleanMate compares, feature by feature.
System Overview
The page the desktop app opens on. It only reads, it never removes anything.
- Disks and memory
- Each disk with a usage bar that warns past 90 % full, memory and swap, your graphics cards, and your system and package counts.
- Free space over time
- A 30-day chart, and Freed by CleanMate: the last 30 days, in total and the last cleanup, with a bar per day.
- Space outside your folders
- Timeshift snapshots, the swap file and ext4’s reserved space; your largest folders open in Space Lens.
- System protection
- Whether the firewall (ufw), AppArmor, automatic security updates and Secure Boot are on; one that is off shows the command that turns it on.
- Smart Scan from here
- Run Smart Scan right from the Overview and the welcome; it shows how long it took, you can Stop it any time, and unfinished items wait under Scan Again.
Related guides
- Free up disk space on Ubuntu as a developer: apt, snap, journal, Docker, Flatpak
- Virtual machines and dev infrastructure tools using too much disk space: Vagrant boxes, minikube, Lima, Colima, Multipass, Terraform and Helm on Mac and Ubuntu
- node_modules and old build folders taking tens of GB: find and delete them safely on Mac and Ubuntu
- Unity using too much disk space: old Editor versions in Unity Hub, caches and project Library folders on Mac and Ubuntu
Smart Scan › System junk and logs
Smart Scan checks everything below at once, in about a second.
- Packages
- APT cache, unused packages, leftover configs and old Snap revisions, cleaned with apt-get and snap; extra old kernels, always keeping the running one and a fallback; the PackageKit cache GNOME Software and Software Updater leave in /var/cache/PackageKit.
- Old installers and downloads
- .deb, AppImage and .iso files over 30 days old and anything at the top of Downloads unused for 90 days; not ticked, moved to the Trash.
- Old screenshots and abandoned downloads
- Screenshots and screen recordings untouched for 90 days and unfinished downloads untouched for 7 days; not ticked, moved to the Trash.
- Logs
- The systemd journal (keeps 7 days), rotated and oversized logs, crash reports, core dumps and old app logs.
- Old temp files
- Only past the age you set; items that need your password show a lock and use the standard Ubuntu dialog.
- Why is this safe?
- Every Smart Scan and Privacy item explains what it is, what cleaning does and when it is skipped, with Open Folder and Never Clean.
- Unused Flatpak runtimes
- Flatpak runtimes no app uses any more show up in the system group, and Maintenance says how much removing them frees.
- Never Clean this folder
- Never Clean This Folder sits in a row’s menu, and Ctrl+F searches more pages.

More about Smart Scan, on Mac and Ubuntu
Related guides
- How to clear the cache on Ubuntu: ~/.cache, apt, the journal, thumbnails, snap and Flatpak
- Ubuntu /boot full: remove old kernels safely and get apt working again
- Ubuntu: the systemd journal, /var/log, the apt cache and autoremove taking up disk space
- Trash won't empty or says the file is in use: fixes on Mac and Ubuntu
Smart Scan › User and app junk
Your caches, each browser and each app as its own choice.
- Trash and thumbnails
- Your Trash and the Trash on USB and other drives (not ticked), thumbnails and stale caches.
- Browsers and apps
- Each browser, VS Code, Slack, Discord, Steam’s shader cache, Dropbox, Nextcloud, Snap and Flatpak apps; Telegram and Spotify caches are not ticked.
- GPU shader cache and desktop search index
- Mesa, NVIDIA and Qt shader caches (skipped while Steam, Lutris, Heroic or Wine/Proton run) and the GNOME or KDE file search index; not ticked, rebuilt afterwards.
- Game launchers
- Installers winetricks and Wine downloaded, and the cover art and temporary installers of Lutris and Heroic; skipped while a launcher, Wine or Proton runs. Wine prefixes, games and saves are never touched.
- Steam
- The web cache of Steam’s store and library pages (appcache/httpcache, config/htmlcache), depot manifests, logs and crash dumps, for deb, Flatpak and Snap Steam, often 0.5–2 GB; ticked, skipped while Steam runs. Games, downloads, Proton prefixes, saves and your sign-in are never touched.
- Minecraft and Prism Launcher
- The official launcher’s logs, crash reports and web cache, and Prism Launcher’s logs, download cache and each instance’s logs and crash reports (also Flatpak); ticked, skipped while a launcher or Java runs. Worlds, mods, resource packs, screenshots, settings and accounts are never touched.
Related guides
- Snap and Flatpak eating disk space on Ubuntu: old snap revisions, unused Flatpak runtimes, app caches
- Steam, Proton and shader cache eating disk space on Ubuntu: old runners, shader cache, Lutris and Heroic
- Slack, Discord, Teams, Notion and other chat app caches using GBs: why, and how to clean them on Mac and Ubuntu
- JetBrains and VS Code using too much disk space: old IDE versions, caches, old extensions and workspaceStorage on Mac and Ubuntu
Smart Scan › AI tools and models
Caches, logs and old sessions of Claude Code, Claude Desktop, Codex, Gemini / Antigravity, Cursor, Windsurf, opencode, Cline, Kilo Code, MiMoCode, ZCode, Zed, Copilot CLI and Continue.
- Old sessions, caches and logs
- Only sessions older than the limit you set; Claude Code memory, logins and settings are never touched.
- Editor data of deleted projects
- What VS Code, Cursor, Windsurf and VSCodium keep for projects that are gone; not ticked, moved to the Trash.
- Downloaded models
- Each Ollama, Hugging Face and LM Studio model on its own, plus PyTorch, Whisper, sentence-transformers and Keras models; never ticked, never cleaned automatically. Where AI models are stored and how to remove them

Smart Scan › Developer junk
Build and package caches, cleaned with each tool’s own command where it has one.
- Package caches
- npm, Yarn, pnpm, Bun, pip, uv, Go, Cargo, Gradle, Maven, Conda, Deno, Zig, Bazel, ccache, NuGet, Poetry, Composer, Haskell (cabal, Stack, ghcup), Scala (Coursier, Ivy, sbt), OCaml (opam) and more. Python caches: pip, conda and uv Clear the npm, Yarn, pnpm and Bun cache
- Infrastructure tools
- The Terraform/OpenTofu plugin cache, the minikube download cache, the Helm cache and old Vagrant box versions; clusters, profiles, certificates and the boxes your machines use are kept. Skipped while the tool runs.
- Docker and Podman
- Images, build cache, containers and volumes, each separately; a named volume is marked may hold data.
- Stale node_modules and build folders
- node_modules, Cargo target/, Python .venv/, CocoaPods Pods/, Gradle, Maven, SwiftPM, Flutter, Next.js, Nuxt, SvelteKit, Angular, Turborepo, Haskell, Elixir, Zig and .terraform folders of projects idle for 90 days; build folders are not ticked and go to the Trash.
- Old runtime versions
- nvm, SDKMAN, fvm, pyenv, rbenv, rustup, Go SDK, asdf and mise versions that aren’t your default or pinned; not ticked, a version a program runs from is skipped.
- Android emulator
- System images no virtual device uses and AVD snapshots; not ticked, skipped while Android Studio or the emulator runs.
- Old Android SDK components and editor extensions
- NDK, build-tools, SDK platform and CMake versions an SDK update leaves behind, and old extension versions of VS Code, VSCodium, Cursor and Windsurf; the newest and pinned versions are kept. Not ticked, skipped while the tool runs.
- Old JetBrains and Android Studio versions
- What an IDE upgrade leaves behind, never the newest; not ticked, moved to the Trash.
- Unity, Proton and Wine
- Old Unity Editor versions no project uses and Unity caches; old Proton-GE, Wine-GE and other Proton and Wine builds Steam, Lutris, Heroic and Bottles leave behind, keeping the newest and the ones a game uses. Not ticked, skipped while they run.
- Browsers for tests and other tools
- Playwright, Puppeteer and Cypress browsers, Firebase CLI logs and emulators, the Dart and Flutter pub cache; not ticked.
More about developer junk, on Mac and Ubuntu
Related guides
- Docker "permission denied" or "Cannot connect to the Docker daemon" on Ubuntu: the fix
- Rust, Go and Java package caches filling your disk: Cargo registry, Go module cache, Maven ~/.m2, Gradle, Coursier and Ivy on Mac and Ubuntu
- Docker using too much disk space: clean images, build cache and volumes on Mac and Ubuntu
- Python caches filling your disk: pip, conda, uv, Poetry and old virtualenvs on Mac and Ubuntu
- Clear the npm, Yarn, pnpm and Bun cache on Mac and Ubuntu: commands and what is safe
- Old Node, Python, Ruby, Rust and Go versions filling your disk: nvm, pyenv, rbenv, rustup, Go SDK and fvm on Mac and Ubuntu
Privacy
Never part of Smart Scan; nothing is ticked until you choose it.
- History
- Shell history (bash, zsh, fish), Recent files, Python, Node and database shell history, Vim history, and the Alt+F2 and emoji history. Delete recent files, history and app traces
- Browsers
- History, the downloads list and cookies of Firefox, Chrome, Chromium, Brave, Edge, Vivaldi and Opera (deb, Snap and Flatpak, every profile); passwords, bookmarks and extensions are kept. Skipped while the browser runs.

Space Lens
What takes up the space in your home folder or any folder or drive, biggest first.
- Browse and remove
- Click a folder to dig deeper, tick what you don’t need and move it to the Trash; Undo puts it back. On a USB drive it goes to that drive’s own Trash; system places are only shown.
- From the whole disk
- Pick your home folder, the system disk or another drive, and see why each system folder stays and where cleaning is safe.

Compare: Space Lens vs DaisyDisk, GrandPerspective, Baobab and Filelight
More about Space Lens, on Mac and Ubuntu
Related guides
Large & Old Files
Your biggest files, by minimum size, how long unused, and folder or drive.
- Move to the Trash
- Only what you tick, with Undo, also from a USB or other drive.
- Kinds, thumbnails and Open
- Sort and filter by kind of file, with thumbnails and Open for images and videos; Duplicates and Similar Photos preview too.

Related guides
- Google Drive, Dropbox and OneDrive taking up space: sync caches and downloaded files (Mac and Ubuntu)
- Find what is using disk space from the terminal on a Mac and on Ubuntu
- How to find large files on a Mac and on Ubuntu: Finder, du, find, ncdu and Baobab
- Clean up the Downloads folder on a Mac and Ubuntu: old installers (.dmg, .pkg, .deb, AppImage, ISO), unfinished downloads and old screenshots
Duplicates
Identical files from 1 MB in a folder or drive you pick, in groups.
- Keep the original
- Nothing is ticked until you choose; Select automatically ticks every copy except the oldest, and you are warned if every copy of a file is ticked.
- Similar Photos
- Finds resized, edited or burst copies of the same photo, suggests the biggest to keep and moves the rest to the Trash, with Undo. It runs on your computer only.

Moved to the Trash
Everything CleanMate moved to the Trash — from the desktop app or the terminal, this session or an earlier one.
- Search, filter, put back
- Search and filter what was moved and when, then Put Back or Show in Files; a restore never overwrites a file that is there now.
Uninstaller
Every apt, Snap and Flatpak app you can open, with its real size and when you last used it.
- Remove several at once
- Tick, say, everything unused for 12 months and remove them with one confirmation and one password; running apps are skipped, and removing something Ubuntu needs is refused.
- The app’s own folders
- Offered for the Trash afterwards, never folders other apps share, with Restore folders.
- Reset
- The app stays installed and its data in your home goes to the Trash, so it starts as if new; with Restore. Refused while the app runs.
- AppImage apps
- An AppImage with a launcher is listed; uninstalling moves the file, its launcher and icon to the Trash without a password.
- Leftovers of removed apps
- Folders no installed app uses any more; not ticked, moved to the Trash. Shared folders, ones changed in the last 30 days or with a file open are never listed. apt purge vs remove and leftover config files

Startup Items
The apps and your systemd user services that start at login.
- On, off or remove
- A service or timer also starts or stops right away; removing one of yours moves its file to the Trash, with Undo. The system’s own services are only shown. Startup apps and login items
- Missing programs
- Entries whose program is gone are marked Missing and listed first, with Remove.

Maintenance
Routine tasks with their output in a log window, asking for your password once per task.
- Tasks
- Update everything (with a list of what will change first), repair packages, TRIM, free RAM, rebuild the font cache and the locate database.
- Lasting limits
- Keep old snap versions and system logs from piling up again.
Related guides
- Ubuntu /boot full: remove old kernels safely and get apt working again
- Ubuntu: the systemd journal, /var/log, the apt cache and autoremove taking up disk space
- Ubuntu says the disk is full, but df shows free space: inodes, deleted files and reserved blocks
- Timeshift snapshots are filling the disk on Ubuntu: list, delete and keep fewer
Automatic cleaning
A weekly, daily or monthly clean of user and developer junk, with a notification of what it freed.
- What it never does
- Empty the Trash, touch browsers, apps or project build folders, or ask for your password.
- Low disk alert and scan reminder
- A notification when / has less than 10 % free (5–20 % or Off), also for the disk of your home folder when /home is a separate partition, naming the disk that is filling up; and a reminder when no scan ran for a week or a month.
- Scan groups
- In Settings › Scan groups, whole groups of cleaning can be turned off for both apps and automatic cleaning.
- Where you left off
- A notification says what a clean freed, and the window reopens where you left it.
Terminal app and safety
Run cm: press 1 for a Smart Scan and c to clean. Both apps share settings and remember what you untick.
- Command line
- cm --scan shows what Smart Scan would find without changing anything; --dry-run shows the commands without running them.
- Manual page
- man cm opens a manual page, and cm --help lists every --json command.
- Uninstaller in the terminal
- f filters apps not used for 90+ days, then 365+ days.
- Never clean
- Folders you add in Settings are skipped by every module that moves files to the Trash.
- Hard blocklist
- System paths and your home folder itself are blocked; logins and keys (.ssh, .gnupg…), bookmarks and the running kernel are never touched.
- Activity log
- Every clean is logged to ~/.local/state/cleanmate/clean.log.
- Welcome and bug reports
- Three short steps the first time the desktop app opens (Main menu › Getting Started… shows them again); Report a Bug… opens a GitHub issue filled in with your versions, without your user name or file paths.

Command line and AI agents
The cm command works without a window, so scripts and AI agents such as Claude Code and Codex can use it.
- Commands
- cm --scan shows what Smart Scan would find, cm --clean scans, asks once and cleans, and cm --clean --yes --only logs cleans without asking. --only takes system, logs, user, browser, apps, ai, models, dev and privacy; privacy only when named. --dry-run works with everything.
- Machine-readable output
- cm --json scan, cm --json --dry-run clean and cm --json clean print one JSON object per line and nothing else: items with id, size in bytes and whether they are locked, then what was freed and the Trash restore keys. Docker volumes and stopped containers are marked data_loss, and cm --clean --yes never removes them.
- Find and move files
- cm --json lens, large and dupes list what takes up space (--path, --min, --days, --limit); cm --json trash moves only the confirmed paths to the Trash, refusing anything outside your home or in Never clean.
- Undo across sessions
- cm --json restore --list (cm restore --list in a terminal) lists what CleanMate moved to the Trash and is still there, newest first, from the apps, a clean or cm --json trash; cm --json restore puts it back.
- Agent skill
- An open Agent Skill teaches Claude Code, Codex and other agents to scan first, show you the result and clean only what you confirm, using cm --json; it never deletes files by hand.
Command line reference: every command, --json, exit codes and the Agent Skill
Get CleanMate
Free and open source (MIT). PPA for Ubuntu 24.04, 26.04, 26.10, or a script for any Ubuntu without sudo.
Open source — star it on GitHub: CleanMate for Ubuntu