Guides
How to find and safely remove what fills your disk: the commands to run by hand, what each one costs you, and what CleanMate does for it.
System 20 guides12 guides11 guides
Caches, System Data, snapshots, old kernels, snaps and what starts at login.
macOS New
Wrong app icons, blank Quick Look previews and a crowded Open With menu: fixes on a Mac
Why a Mac shows wrong or generic icons, blank Quick Look previews or duplicate entries in the Open With menu, which three caches sit behind it, the commands that fix each one, and the Maintenance tasks CleanMate runs for you.
macOS and Ubuntu New
Cleaned something by mistake: how to restore files CleanMate moved to the Trash
What can be put back after a clean on a Mac and on Ubuntu: the Undo button, the Moved to the Trash window, cleanmate restore and cm restore --list, the rules of putting items back, and why caches and logs are not on any of those lists.
Ubuntu New
Ubuntu: automatic cleanup on a schedule and a warning when the disk runs low
A cron or systemd timer can clean an Ubuntu disk on a schedule, but it runs as root with no preview and no notification. What a safe hand-written job looks like, and what CleanMate does instead: automatic cleaning and the low-disk alert.
macOS New
Mac says not enough space to update macOS: what to delete first
Why a macOS update asks for so much free space, how to check what the updater sees, what is safe to delete first — Trash, caches, Xcode, old installers and local snapshots — and what not to touch.
macOS New
Time Machine backup drive is full: let it thin, delete old backups, exclude folders
When a Time Machine drive fills up on a Mac: how automatic thinning works, how to delete one old backup with tmutil delete, and which folders to exclude.
Ubuntu New
Timeshift snapshots are filling the disk on Ubuntu: list, delete and keep fewer
How much space Timeshift takes on Ubuntu, how to list and delete old snapshots with the timeshift command, and how RSYNC and BTRFS modes differ.
macOS and Ubuntu New
Trash won't empty or says the file is in use: fixes on Mac and Ubuntu
Why the Trash refuses to empty or a file is "still in use", on a Mac and on Ubuntu: files a running app holds, files on external drives (.Trashes and .Trash-1000), permissions, Flatpak and snap Trash folders, and the safe ways to empty each.
Ubuntu New
Ubuntu says the disk is full, but df shows free space: inodes, deleted files and reserved blocks
Why Ubuntu reports "No space left on device" while df -h still shows free space, or frees nothing after you delete files: inodes run out, deleted files a process keeps open, ext4 reserved blocks, a full /tmp or /boot, the journal, snaps and Docker, with the command to check and fix each.
macOS New
Mac: ~/Library/Logs, DiagnosticReports and crash reports taking up disk space — what is safe to delete
Where macOS and apps keep logs and crash reports (~/Library/Logs, DiagnosticReports, /Library/Logs), how to see which are big, which are safe to delete by hand with Finder or Terminal, and what CleanMate cleans and leaves alone.
macOS New
Mac: which ~/Library folders are safe to delete, and which hold your data
A folder-by-folder map of ~/Library: Caches and Logs rebuild themselves, while Application Support, Containers, Keychains, Mail and Messages are your data — with a table of what you can delete and what to leave alone.
Ubuntu New
Ubuntu: the systemd journal, /var/log, the apt cache and autoremove taking up disk space
Why /var/log and /var/cache grow on Ubuntu, and the safe commands to shrink them: journalctl --disk-usage and --vacuum, SystemMaxUse, apt clean, autoclean and autoremove, old kernels, rotated logs and PackageKit — with a table of what is safe to delete.
macOS New
How to clear the cache on a Mac: user, system, browser and app caches — what is safe to delete
Where macOS keeps caches (~/Library/Caches, /Library/Caches, browsers, chat apps), the commands that clear them safely and without admin rights, why the disk fills again afterwards, and the folders worth more than their space.
Ubuntu New
How to clear the cache on Ubuntu: ~/.cache, apt, the journal, thumbnails, snap and Flatpak
Sizes first, then the safe commands: folders under ~/.cache, the thumbnail cache, sudo apt clean, journalctl --vacuum, PackageKit and snap/Flatpak caches — what each one costs, and what you should not delete.
macOS New
How to free up disk space on a Mac: a safe, step-by-step guide
Free up space on your Mac without deleting anything you need: check what takes space in Storage settings, then empty the Trash, clean Downloads, find large and duplicate files, clear caches, Mail attachments, old iPhone backups, unused apps and Time Machine snapshots.
Ubuntu New
How to free up disk space on Ubuntu: a safe, step-by-step guide
Free up space on Ubuntu without breaking anything: check what takes space with df and Disk Usage Analyzer, then empty the Trash, clean the apt cache, remove old kernels, shrink the journal, clear snap and Flatpak leftovers, caches, large and duplicate files, and Downloads.
macOS New
Purgeable space and Time Machine local snapshots on a Mac: why free space looks wrong and how to get it back
What purgeable space is, why Finder, Disk Utility and df show different free space, how to list, thin and delete Time Machine local snapshots with tmutil, when macOS removes them by itself, and what not to do.
Ubuntu New
Snap and Flatpak eating disk space on Ubuntu: old snap revisions, unused Flatpak runtimes, app caches
Why snap and Flatpak grow on Ubuntu and the safe commands to shrink them: snap list --all and disabled revisions, snap remove --revision, refresh.retain, flatpak uninstall --unused, flatpak repair and the caches in ~/snap and ~/.var/app.
macOS and Ubuntu New
Startup apps and login items on Mac and Ubuntu: how to see, disable and remove what runs when you log in
Where apps register themselves to start at login on a Mac (Login Items, LaunchAgents) and on Ubuntu (autostart, systemd user services), the commands to list, disable and remove them, and how CleanMate does it.
Ubuntu New
Ubuntu /boot full: remove old kernels safely and get apt working again
Why /boot fills up on Ubuntu (an initrd per kernel), how to list kernels with dpkg -l and uname -r, apt autoremove --purge, removing one kernel by hand, and fixing apt when /boot is already too full to upgrade.
macOS New
"System Data" on a Mac takes tens of GB: what it is and how to shrink it
What macOS counts as System Data in Storage settings: Time Machine local snapshots, purgeable space, caches, Xcode DerivedData and simulators, Docker.raw, Mail and app containers. How to see each one with a command and shrink it safely, without sudo rm.
Developer 22 guides19 guides15 guides
Xcode, Docker, node_modules, package caches, SDKs, IDEs and AI models.
macOS New
Colima, Lima, Podman machine, minikube and Rancher Desktop: leftover Linux VMs filling your Mac
Docker alternatives on a Mac run a hidden Linux VM with its own disk. How to find the Colima, Lima, Podman machine, minikube and Rancher Desktop VMs you forgot, see their size and remove them safely.
Ubuntu New
Docker "permission denied" or "Cannot connect to the Docker daemon" on Ubuntu: the fix
Why Docker says permission denied on /var/run/docker.sock or cannot connect to the daemon on Ubuntu, how to fix each case without running everything with sudo, and how to then clean Docker's disk space.
macOS New
Parallels, VMware Fusion, UTM and VirtualBox virtual machines using too much disk space on a Mac
How to find the virtual machines that fill your Mac, see how big each one really is, shrink the ones you use and remove the ones you forgot: Parallels, VMware Fusion, UTM and VirtualBox, with what is safe to delete.
Ubuntu New
Podman using too much disk space on Ubuntu: images, build cache and volumes
Where Podman keeps its images, containers, build cache and volumes on Ubuntu, rootless and root, how to see what takes the space, and which prune commands are safe to run.
macOS New
Flutter, React Native and the iOS Simulator filling your Mac: what to delete
Why Flutter and React Native projects take tens of GB on a Mac: flutter clean, pub cache, Pods, Gradle, Metro, the iOS Simulator and runtimes. What is safe to delete.
macOS and Ubuntu New
Clear the npm, Yarn, pnpm and Bun cache on Mac and Ubuntu: commands and what is safe
Where npm, Yarn, pnpm and Bun keep their package caches on a Mac and on Ubuntu, the commands to clear them (npm cache clean, pnpm store prune, yarn cache clean, bun pm cache rm) and what each one costs you.
macOS New
How to uninstall Xcode and the Command Line Tools cleanly on a Mac
Remove Xcode completely: the app, the gigabytes it leaves in ~/Library/Developer (DerivedData, simulators, archives, device support), simulator runtimes, the Command Line Tools and the xcode-select path, then how to install only what you need again.
macOS and Ubuntu New
Let an AI agent clean your disk on Mac and Ubuntu: Claude Code, Codex and Cursor with the CleanMate command and Agent Skill
How to let Claude Code, Codex, Cursor or another AI agent free up disk space safely on a Mac or on Ubuntu: the cleanmate and cm commands, the open Agent Skill, the rules it follows, and which CleanMate version has what.
macOS New
Homebrew eating disk space on a Mac: brew cleanup, autoremove, the download cache and old versions
Where Homebrew keeps its files on a Mac and the safe commands to shrink it: brew cleanup and --prune=all, brew autoremove, the download cache in ~/Library/Caches/Homebrew, old formula versions, cask apps and HOMEBREW_NO_INSTALL_CLEANUP.
macOS and Ubuntu New
JetBrains and VS Code using too much disk space: old IDE versions, caches, old extensions and workspaceStorage on Mac and Ubuntu
Where IntelliJ IDEA, PyCharm, WebStorm, VS Code, Cursor and VSCodium keep gigabytes on a Mac and on Ubuntu, and how to remove what is safe by hand: old IDE version folders, indexes and caches, old extension versions and the workspaceStorage of deleted projects.
macOS and Ubuntu New
node_modules and old build folders taking tens of GB: find and delete them safely on Mac and Ubuntu
How to find every node_modules folder and build folder (dist, .next, build, target, .venv, Pods) on a Mac or on Ubuntu, see what each one weighs, and delete the ones of projects you no longer touch without breaking anything.
macOS and Ubuntu New
Python caches filling your disk: pip, conda, uv, Poetry and old virtualenvs on Mac and Ubuntu
Where pip, conda, uv, Poetry and pipx keep their caches on a Mac and on Ubuntu, how to clear them (pip cache purge, conda clean, uv cache clean), how to find old .venv folders, and what is safe to delete.
macOS and Ubuntu New
Rust, Go and Java package caches filling your disk: Cargo registry, Go module cache, Maven ~/.m2, Gradle, Coursier and Ivy on Mac and Ubuntu
Where Cargo, Go, Maven, Gradle, Coursier, Ivy and sbt keep downloaded packages on a Mac and on Ubuntu, how big they get, how to clear them (go clean -modcache, mvn dependency:purge-local-repository, Gradle caches) and what not to delete.
macOS and Ubuntu New
Unity using too much disk space: old Editor versions in Unity Hub, caches and project Library folders on Mac and Ubuntu
Where Unity Hub installs Editor versions on a Mac and on Ubuntu, how to remove old ones safely, which Unity caches you can clear, and when to delete a project Library folder.
macOS and Ubuntu New
Virtual machines and dev infrastructure tools using too much disk space: Vagrant boxes, minikube, Lima, Colima, Multipass, Terraform and Helm on Mac and Ubuntu
How to find and remove what Vagrant, minikube, Lima, Colima, Multipass, Terraform and Helm leave on a Mac and on Ubuntu: old box versions, download caches, VM disks, provider plugins and chart caches, with the commands each tool gives you and what is safe to delete.
macOS and Ubuntu New
AI models filling your disk: Ollama, LM Studio, Hugging Face, Whisper and PyTorch on Mac and Ubuntu
Where local AI tools keep their models on a Mac and on Ubuntu, how to list them with their sizes and remove the ones you no longer use: ollama list and ollama rm, LM Studio, the Hugging Face cache, Whisper, PyTorch Hub, sentence-transformers and Keras.
macOS and Ubuntu New
Android Studio using too much disk space: old SDK and NDK, emulator images and the Gradle cache on Mac and Ubuntu
Where Android Studio puts its tens of GB on a Mac and on Ubuntu and how to remove what you no longer need: old NDK, build-tools and platforms with sdkmanager, system images and AVDs with avdmanager, emulator snapshots, the Gradle cache and old Android Studio versions.
macOS and Ubuntu New
Docker using too much disk space: clean images, build cache and volumes on Mac and Ubuntu
Find out what Docker really stores and clean it safely on a Mac or on Ubuntu: docker system df, dangling images, build cache, unused volumes, container logs and the Docker.raw disk image of Docker Desktop.
macOS New
Free up disk space on a Mac as a developer: Xcode, node_modules, Docker, Homebrew
Where a developer Mac loses its disk space and which commands are safe: Xcode DerivedData and simulators, node_modules, Docker, Homebrew and package caches, with what each one costs you to get back.
Ubuntu New
Free up disk space on Ubuntu as a developer: apt, snap, journal, Docker, Flatpak
The safe commands to reclaim disk space on Ubuntu: apt cache and old kernels, old snap revisions, the systemd journal, Docker, unused Flatpak runtimes, thumbnails and node_modules, and what each one costs you.
macOS and Ubuntu New
Old Node, Python, Ruby, Rust and Go versions filling your disk: nvm, pyenv, rbenv, rustup, Go SDK and fvm on Mac and Ubuntu
How to list and remove the language versions you no longer use on a Mac or on Ubuntu: nvm ls and nvm uninstall, pyenv versions, rbenv, rustup toolchain remove, Go SDKs in ~/sdk and fvm, and how to tell which version a project pins.
macOS New
Xcode using too much space: DerivedData, simulators, archives and device support
Where Xcode keeps its gigabytes and what is safe to delete: DerivedData, simulator data and test device clones, old simulator runtimes, archives, iOS DeviceSupport, the documentation cache and CocoaPods spec repos, with the commands.
Apps & games 10 guides8 guides7 guides
Chat apps, mail, cloud sync, video editors, game launchers and leftovers of removed apps.
Ubuntu New
Uninstall an app on Ubuntu and remove its leftover config files: apt purge vs remove, ~/.config
What apt remove keeps and apt purge deletes, what neither touches in your home folder (~/.config, ~/.local/share, ~/.cache), and how to find and delete the leftovers of apps you already removed, with the commands.
macOS and Ubuntu New
Spotify, Apple Music, Podcasts and YouTube Music downloads and cache taking up disk space — Mac and Ubuntu
How much space Spotify, Apple Music, Apple Podcasts and YouTube Music use on a Mac and on Ubuntu (deb, Snap, Flatpak), where the stream cache and the offline downloads are, how to clear them by hand without losing your library, and what CleanMate cleans.
macOS and Ubuntu New
Google Drive, Dropbox and OneDrive taking up space: sync caches and downloaded files (Mac and Ubuntu)
Why Google Drive, Dropbox and OneDrive fill your disk, how to make files online-only (streaming, Files On-Demand, Free up space), where their hidden caches are on a Mac and on Ubuntu, and what CleanMate cleans.
macOS and Ubuntu New
Steam, Epic Games, Battle.net, GOG and Minecraft taking up disk space on Mac and Ubuntu: launcher caches, logs and crash reports
Where Steam, Epic Games Launcher, Battle.net, GOG Galaxy, Minecraft and Prism Launcher keep caches, logs and crash dumps on a Mac and on Ubuntu (deb, Flatpak, Snap), what is safe to delete, and what to never touch: games, saves, worlds, mods and sign-ins.
macOS New
Messages taking up space on a Mac: large attachments, Keep Messages and Messages in iCloud
How to see how much space Messages (iMessage) uses on your Mac, remove large attachments the safe way, keep messages for 30 days or 1 year, and what Messages in iCloud changes. Why you should not delete the Attachments folder in Finder.
macOS New
Video editing caches taking up space on a Mac: Adobe Media Cache, Final Cut Pro and iMovie render files
Where Premiere Pro, After Effects, Final Cut Pro and iMovie keep their media cache and render files on a Mac, how to clear them from each app, what never to delete, and what CleanMate cleans.
macOS New
Mail on a Mac takes up GBs: attachment copies, the IMAP cache and how to shrink it
Where Apple Mail keeps its data (~/Library/Mail and Mail Downloads), why it grows to tens of GB, how to see the size, delete opened attachment copies safely, stop Mail from downloading every attachment, and what not to delete.
Ubuntu New
Steam, Proton and shader cache eating disk space on Ubuntu: old runners, shader cache, Lutris and Heroic
Where Linux gaming fills your disk and what is safe to delete: old Proton-GE and Wine builds in compatibilitytools.d, Lutris, Heroic and Bottles runners, the Mesa and NVIDIA shader caches, Steam shadercache, and what to keep.
macOS and Ubuntu New
Slack, Discord, Teams, Notion and other chat app caches using GBs: why, and how to clean them on Mac and Ubuntu
Why Electron apps such as Slack, Discord, Microsoft Teams, Notion, Figma, Postman, Signal and Obsidian keep gigabytes of cache, where the folders are on a Mac and on Ubuntu (including Snap and Flatpak), and which ones are safe to delete by hand.
macOS and Ubuntu New
How to uninstall an app completely on Mac and Ubuntu: find and remove the leftover files
Dragging an app to the Trash or running apt remove leaves data behind. Where the leftovers hide on a Mac (~/Library, brew --zap) and on Ubuntu (apt purge, snap --purge, Flatpak --delete-data, ~/.config, AppImage), with the commands to find and remove them.
Files & photos 9 guides9 guides6 guides
Large and duplicate files, Downloads, iCloud Drive, Photos, iPhone backups and external drives.
macOS and Ubuntu New
Similar photos and burst shots on a Mac and Ubuntu: how to find them and keep the best one
Photos that look alike are not duplicate files: bursts, edits and re-saved copies differ byte by byte. How to tell the two apart, how CleanMate groups similar photos on a Mac and on Ubuntu, and which copy it suggests keeping.
macOS and Ubuntu New
Find what is using disk space from the terminal on a Mac and on Ubuntu
Walk your disk from the terminal to the folder that fills it: df and diskutil for free space, du level by level with sort -h, ncdu to browse, the system folders a home-folder scan misses, why du and df disagree, and when a visual tool like Space Lens is quicker.
macOS New
iCloud Drive taking up space on a Mac: Remove Download, Optimize Mac Storage and brctl evict
Why iCloud Drive files still fill your Mac after they are uploaded, how to free their space without deleting them from iCloud (Remove Download in Finder, Optimize Mac Storage, brctl evict), and which files must stay downloaded.
macOS New
Photos library taking up space on a Mac: Optimize Mac Storage, Recently Deleted and old libraries
Why the Photos library is often the biggest item on a Mac, and how to shrink it safely: Optimize Mac Storage in iCloud Photos, emptying Recently Deleted, finding old iPhoto or second libraries, and moving the library to an external drive. Never edit inside the library.
macOS and Ubuntu New
Clean up the Downloads folder on a Mac and Ubuntu: old installers (.dmg, .pkg, .deb, AppImage, ISO), unfinished downloads and old screenshots
How to find what fills Downloads on a Mac and on Ubuntu: installers you already used, ISO images, unfinished .crdownload and .part files, screenshots and files you never opened again, with Finder, Files and find commands.
macOS and Ubuntu New
USB or external drive still full after deleting files: the hidden .Trashes (Mac) and .Trash-1000 (Ubuntu) folders
Files you delete on a USB stick or external drive go to a hidden Trash folder on that drive: .Trashes/<uid> on a Mac, .Trash-1000 on Ubuntu. How to see how big it is, empty it safely in Finder, Files or with gio trash --empty, FAT and exFAT drives, and Trash left by another computer.
macOS and Ubuntu New
How to find and delete duplicate files safely on a Mac and on Ubuntu (fdupes, hard links, APFS clones)
Where duplicate files come from, how to find them with fdupes or jdupes on macOS and Ubuntu, why hard links and APFS clones look like duplicates but free no space, and which copy to keep.
macOS and Ubuntu New
How to find large files on a Mac and on Ubuntu: Finder, du, find, ncdu and Baobab
Find what fills your disk on macOS and Ubuntu: Finder searches by size, Storage settings, du and find commands (with the BSD and GNU differences), ncdu and Disk Usage Analyzer, and what is safe to delete once you have found it.
macOS New
iPhone and iPad backups taking up space on a Mac: where they are and how to delete old ones safely
Finder keeps a full backup of each iPhone and iPad you sync in ~/Library/Application Support/MobileSync/Backup, often tens of GB. How to see them, delete the backup of a device you no longer have, what changes with encrypted backups, moving to iCloud Backup, and why not to move the folder with a symlink.
Privacy 3 guides3 guides2 guides
Browser history and cookies, and the permissions a cleaner needs.
macOS and Ubuntu New
Delete recent files, browser history and app traces on Mac and Ubuntu
Where a Mac and Ubuntu remember what you opened: Recent Items, Open Recent lists, thumbnails, shell history, download history and browser data. The commands and menus to clear each one, and what CleanMate Privacy does and keeps.
macOS and Ubuntu New
What your browser stores on a Mac and on Ubuntu: cache, history, cookies and downloads, and how to clear them
Where Chrome, Firefox, Safari, Edge and Brave keep their cache, history, cookies and download list on a Mac and on Ubuntu (including Snap and Flatpak), what each one reveals, how much space it takes, and how to clear it by hand or with CleanMate.
macOS New
Full Disk Access on macOS: what it is, why a cleaner app needs it, and how to grant or remove it
What Full Disk Access (part of macOS privacy controls, TCC) unlocks: Mail, Messages, Safari, the Trash, iPhone backups and sandboxed app data. Why a cleaning app asks for it, how to grant and revoke it in System Settings, and how to check an app does not abuse it.
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