CleanMate

All guides · macOS and Ubuntu · Updated

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.

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

CleanMate Privacy on a Mac, with one group per browser: history, downloads and cookiesCleanMate Privacy on a Mac, with one group per browser: history, downloads and cookies

A browser keeps two kinds of data about you. The cache is copies of pages, images and scripts it has loaded, so the next visit is faster: it takes disk space (often 1 to 5 GB per browser) but says little. History, cookies and the downloads list take little space but say a lot: every site you visited and when, which sites still have you signed in, and the name and web address of every file you downloaded.

The two are cleared in different ways. The cache is safe to delete at any time. History and cookies are records you may want to keep, and deleting cookies signs you out of websites.

Where the cache is

Mac:

Ubuntu:

# Mac: size of each browser cache
du -sh ~/Library/Caches/Google/Chrome ~/Library/Caches/Firefox ~/Library/Caches/com.apple.Safari 2>/dev/null

# Ubuntu
du -sh ~/.cache/google-chrome ~/.cache/mozilla ~/snap/firefox/common/.cache ~/.var/app/*/cache 2>/dev/null

Quit the browser, then delete the folder’s contents. The browser makes a new cache as you browse.

# Example: Chrome on Ubuntu, with Chrome closed
rm -r ~/.cache/google-chrome/Default/Cache

Where history, cookies and downloads are

They live in the browser’s profile, in SQLite databases:

Do not delete these files by hand. places.sqlite holds your bookmarks, and the same folders hold your saved passwords and extensions. Clear them from the browser instead:

Each browser and each profile has its own data, so repeat this in every one you use.

The download list the Mac keeps on its own

On a Mac, macOS itself also records every file you download, with its web address, whatever browser you used, so it can warn you before you open it. It never prunes this list. You can see it with:

sqlite3 ~/Library/Preferences/com.apple.LaunchServices.QuarantineEventsV2 'select LSQuarantineDataURLString from LSQuarantineEvent' | tail

How CleanMate does it

CleanMate keeps the two kinds apart. Nothing in Privacy is ticked for you, and a browser that is running is skipped. The Privacy feature page details how browser traces and cookies are handled on both platforms.

On a Mac (all macOS features):

On Ubuntu (all Ubuntu features):

For other caches that grow the same way, see chat app caches. To see what starts with your computer, see startup apps and login items.

Recent files, shell history and other traces are in delete recent files, browser history and app traces.

FAQ

Is it safe to clear the browser cache? Yes. Pages load a little slower the first time after, and nothing else changes.

Will clearing history sign me out? Clearing history does not. Clearing cookies does.

Does private browsing leave nothing behind? It keeps no history or cookies after the window closes, but files you download stay, and on a Mac macOS still records them in its download list.

Why is my browser cache back after a day? The browser rebuilds it as you browse. Clearing it frees space for a while; it is not a fix for a full disk.

Looking for a BleachBit alternative for Ubuntu? See how CleanMate compares, feature by feature.

Looking for a free CCleaner for Mac alternative? See how CleanMate compares, feature by feature.

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 →