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:
- Chrome:
~/Library/Caches/Google/Chrome - Edge:
~/Library/Caches/Microsoft Edge - Brave:
~/Library/Caches/BraveSoftware/Brave-Browser - Firefox:
~/Library/Caches/Firefox/Profiles/<profile>/cache2 - Safari:
~/Library/Caches/com.apple.Safari(reading it needs Full Disk Access)
Ubuntu:
- Chrome, Chromium, Brave, Edge, Vivaldi, Opera:
~/.cache/<browser>(for example~/.cache/google-chrome,~/.cache/BraveSoftware) - Firefox:
~/.cache/mozilla/firefox/<profile>/cache2 - Snap (Firefox and Chromium ship as Snaps on Ubuntu):
~/snap/firefox/common/.cacheand~/snap/chromium/common/.cache - Flatpak:
~/.var/app/<id>/cache, for example~/.var/app/org.mozilla.firefox/cache
# 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:
- Chrome-based browsers keep
History(visits and the downloads list) andCookiesin each profile folder:~/Library/Application Support/Google/Chrome/Defaulton a Mac,~/.config/google-chrome/Defaulton Ubuntu (other profiles areProfile 1,Profile 2…). - Firefox keeps
places.sqlite(history, downloads and bookmarks in one file) andcookies.sqlitein its profile:~/Library/Application Support/Firefox/Profiles/<profile>on a Mac,~/.mozilla/firefox/<profile>on Ubuntu (Snap:~/snap/firefox/common/.mozilla/firefox). - Safari keeps
~/Library/Safari/History.dband its cookies in~/Library/Containers/com.apple.Safari.
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:
- Chrome, Edge, Brave, Vivaldi, Opera: press
Cmd+Shift+Delete(Mac) orCtrl+Shift+Delete(Ubuntu), choose All time, tick what to clear. - Firefox: the same keys open Clear browsing data and cookies.
- Safari: History › Clear History…, and Settings › Privacy › Manage Website Data… for cookies.
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):
- Smart Scan lists the cache of each browser (Safari, Chrome, Edge, Brave, Arc, Opera, Vivaldi, Firefox, and the Beta, Dev and Canary channels) as its own item.
- Privacy has a group per installed browser: browsing history, download history, cookies and autofill form data. In Chrome-based browsers and Firefox it erases the records inside the databases, so bookmarks, passwords and saved cards stay. Privacy items are deleted for good, not moved to the Trash.
- Privacy › System also clears the macOS download history above (only its records; the files stay), recent items, QuickLook thumbnails and shell history.
- Safari history is skipped while Safari or a macOS service has its database open. If Safari syncs with iCloud, history from your other devices can come back after a clean.
On Ubuntu (all Ubuntu features):
- Smart Scan › User & App Junk lists each browser’s cache as its own choice, Snap and Flatpak included.
- Privacy (never part of Smart Scan) has one item per browser: Firefox, Chrome, Chromium, Brave, Edge, Vivaldi and Opera, deb, Snap and Flatpak, every profile. It clears browsing history, the downloads list and cookies, which signs you out of websites. Passwords, bookmarks, extensions, saved cards and settings are kept. Firefox needs
sqlite3, because CleanMate clears the records and leaves bookmarks in the same file. - In the terminal,
cm --scan --only privacyshows what is stored without deleting anything.
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.

