CleanMate

All guides · macOS and Ubuntu · Updated

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.

Download for macOS · Install on Ubuntu — free and open source

CleanMate for Ubuntu after a scan, listing old installers and old downloads with their sizes

Downloads is where every installer, ISO image, zip and PDF lands, and nothing ever leaves. A .dmg you installed from two years ago is still there, next to an Ubuntu ISO (5 to 6 GB) and a half-finished download that failed. On many machines Downloads is the largest folder in the home folder after Library or .cache.

Unlike caches, these are your files: nothing downloads them again for you. Move them to the Trash rather than deleting them, and empty the Trash once you are sure.

What to look for

On a Mac: Finder

  1. Open Downloads in Finder and choose View › as List.
  2. View › Show View Options (⌘J), tick Date Added, Size and Kind.
  3. Click the Size column to sort largest first, or Date Added to see the oldest.
  4. Type dmg in the search field and choose Kind: Disk Image under the search, with Downloads as the search scope, to list every disk image.

Select what you no longer need and press ⌘⌫ to move it to the Trash. A mounted disk image must be ejected first.

On Ubuntu: Files (Nautilus)

Open Downloads, switch to the list view, right-click a column header to show Size and Modified, and sort by size. Press Ctrl+F and type .deb, .iso or .AppImage to filter. Delete moves files to the Trash.

With the terminal (Mac and Ubuntu)

The 20 largest files in Downloads:

du -ah ~/Downloads | sort -rh | head -20

Installers and disk images older than 30 days:

find ~/Downloads -maxdepth 1 -type f \( -iname '*.dmg' -o -iname '*.pkg' -o -iname '*.xip' -o -iname '*.iso' -o -iname '*.img' -o -iname '*.deb' -o -iname '*.appimage' -o -iname '*.run' \) -mtime +30 -exec ls -lh {} +

Files at the top of Downloads not changed for 90 days:

find ~/Downloads -maxdepth 1 -mindepth 1 -mtime +90

Unfinished downloads older than a week:

find ~/Downloads -maxdepth 1 \( -iname '*.crdownload' -o -iname '*.part' -o -iname '*.download' -o -iname '*.aria2' \) -mtime +7

Check the list first, then move the files to the Trash: on a Mac mv <file> ~/.Trash/, on Ubuntu gio trash <file>. A .part file of a download Firefox still shows as paused can be resumed; cancel it in the browser first.

How CleanMate does it

CleanMate lists four items in Smart Scan, each file or folder on its own row with its name, date and size, on a Mac (all macOS features) and on Ubuntu (all Ubuntu features). They are never ticked for you, everything is moved to the Trash (Undo puts it back), and only the top level of Downloads is read, never subfolders.

The ages are settings: on a Mac in Settings › General (installers in Downloads 30 days, files in Downloads 90 days, which also applies to screenshots; 7 to 365 days); on Ubuntu in Settings › Old installers and Settings › Old downloads. On a Mac these four items need Full Disk Access, since macOS protects Downloads and the Desktop. A folder you add to Exclusions is never listed.

Files elsewhere: find large files on a Mac and Ubuntu and duplicate files. Caches: clear cache on a Mac and on Ubuntu.

Moved something from Downloads too eagerly? CleanMate keeps everything it moved to the Trash on one list: restore files CleanMate moved to the Trash.

FAQ

Can I delete a .dmg after installing the app? Yes. The app runs from Applications; the disk image is only the package it came in. Eject it first if it is still mounted.

Can I delete a .deb after installing it? Yes. apt keeps what it needs; the .deb in Downloads is only needed to install that version again.

What is a .crdownload or .part file? A download that has not finished. If the browser no longer shows it as in progress, it will not finish: delete it and download again.

Why does my Mac ask for permission to read Downloads? macOS protects Downloads, Desktop and Documents. A cleaner needs Full Disk Access, or your permission for that folder, to list what is inside.

Skip the commands

CleanMate runs on both systems: pick yours.

Open source — star it on GitHub: CleanMate for macOS · CleanMate for Ubuntu

How CleanMate decides what is safe to remove →