Smart Scan for Mac and Ubuntu: clean system junk safely
Smart Scan checks system junk, user and app caches, old logs and leftover downloads at once. You see every item and its size before anything is cleaned, with Undo.
Where system junk comes from
As you use your computer, macOS and Ubuntu create temporary files, app caches, log files, crash reports and package data. When an app closes or an update finishes, many of these files stay on your disk. Over months, caches in ~/Library/Caches or ~/.cache and system journals grow into tens of gigabytes.
Cleaning by hand means searching through hidden folders and guessing which files are safe to delete. Deleting active files or files another process needs can cause apps to crash or lose state. A good scanner needs to know what can be rebuilt, what must be skipped while apps run, and what to keep.
How Smart Scan works
- One scan for all junk. CleanMate checks user caches, app caches, logs, crash reports, old installers and downloads in seconds. Items are grouped clearly with their sizes.
- Review before cleaning. You see exactly what was found, which items go to the Trash and which are deleted permanently. Items that might hold personal data, such as Mail attachments or old downloads, are never ticked by default.
- Terminal and automatic cleaning. On Ubuntu you can run Smart Scan from the terminal app with cm or enable automatic cleaning for user and developer junk. System tools like apt-get and journalctl are used where appropriate.
- Honest results and Undo. After cleaning, CleanMate reports the exact space freed and how many items were skipped because they were open or in use. Files moved to the Trash can be put back with Undo.



Where Mac and Ubuntu differ
macOS
On a Mac, CleanMate cleans user caches in ~/Library/Caches, sandboxed app containers with Full Disk Access, old downloads and installers in Downloads, Mail attachments, and old macOS installers in Applications. It works inside your user account without requiring an administrator password.
Ubuntu
On Ubuntu, Smart Scan covers APT cache, old kernels, systemd journal logs, rotated logs, PackageKit cache, Snap revisions, and user caches in ~/.cache. System items marked with a lock ask for your password once through the standard Ubuntu dialog. Automatic cleaning can run weekly, daily or monthly.
What keeps it safe
- Caches and logs rebuilt by apps are deleted; personal files, old installers and downloads go to the Trash.
- Running apps are skipped; cache of an open app or a file another process has open is never touched.
- Keys (.ssh), Keychains, Documents, Photos, Mail, Messages, passwords and sign-ins are blocked and never removed.
- Items that may contain personal data are never ticked by default; you review and confirm before anything goes.
- Undo puts back files moved to the Trash, and restore never overwrites an existing file.
The same from the terminal
Run a scan without changing anything, preview with dry-run, or clean with confirmation.
| System | Command | What it does |
|---|---|---|
| macOS | cleanmate list [--json] [--privacy] | Every Smart Scan item: group, id, name, what it removes, ticked by default or not, deleted or moved to the Trash, whether it may hold data. |
| macOS | cleanmate scan [--only ID,ID…] [--group G,G…] [--privacy] [--json] [--require-fda] | What Smart Scan would find now: items by group with their size, and the total ticked by default. |
| macOS | cleanmate clean [--only ID,ID…] [--group G,G…] [--privacy] [--dry-run] [--yes] [--json] [--require-fda] | Scans again, then cleans. Per item: what was deleted, moved to the Trash or kept and why, then the totals. |
| Ubuntu | cm --scan [--only LIST] | Prints what a Smart Scan finds. LIST: system, logs, user, browser, apps, ai, models, dev, privacy (privacy only when named). |
| Ubuntu | cm --clean [--yes] [--only LIST] | Smart Scan, then cleans the selected items; asks once unless you pass --yes. |
| Ubuntu | cm --auto | What automatic cleaning runs: user, developer and AI cache junk, then a desktop notification. |
Questions
Will Smart Scan delete my personal files or documents?
No. Documents, Photos, Mail and Messages are blocked. Files you choose to remove from Downloads or installers go to the Trash, where Undo can put them back.
What happens to apps that are currently running?
Running apps are left alone. CleanMate skips the cache of an open app and any file another process has open on macOS. On Ubuntu, you are asked about running apps, and they are skipped when nobody is there to answer.
Does Smart Scan require an administrator password?
Not on macOS: CleanMate works entirely within your user account and never asks for a password. On Ubuntu, only system items marked with a lock (such as APT cache or systemd journal) ask for your password.
What is the difference between items deleted and items moved to Trash?
Caches and logs that apps rebuild automatically are deleted permanently. Personal files, old installers, downloads and Mail attachments are moved to the Trash so you can restore them.
Can Smart Scan run automatically on a schedule?
On Ubuntu, you can enable automatic cleaning in Settings to run daily, weekly or monthly for user and developer junk. On macOS, CleanMate does not clean on a schedule; it only offers reminders to scan.
Get CleanMate
Free and open source. Review every item before it is removed.
Open source — star it on GitHub: CleanMate for macOS · CleanMate for Ubuntu