CleanMate

All guides · macOS and Ubuntu · Updated

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.

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

CleanMate on Ubuntu asking before it cleans chat app caches such as Slack and Discord, with each item and its size

Slack, Discord, Notion, Figma, Postman, Signal and Obsidian are Electron apps: each one is a copy of the Chromium browser with a website inside. Like a browser, each keeps the pages, images, scripts and compiled code it has loaded, so that the next start is fast. Nothing expires them in a useful way, so after a year of busy workspaces 2 to 5 GB per app is common.

The cache is safe to delete. The rest of the app folder is not: it holds your login, settings and, for some apps, your local data.

Where the folders are

Mac, in ~/Library/Application Support/<App> (the folder name is the app’s, for example Slack, discord, Notion, Figma, Postman, Signal, obsidian), and a few apps also in ~/Library/Caches/<bundle id>.

Ubuntu, in ~/.config/<App>. Snap apps keep theirs in ~/snap/<app>/current/.config/<App> and Flatpak apps in ~/.var/app/<id>/cache and ~/.var/app/<id>/config.

# Mac
du -sh ~/Library/Application\ Support/{Slack,discord,Notion,Figma,Postman,Signal,obsidian} 2>/dev/null
# Ubuntu
du -sh ~/.config/{Slack,discord,Notion,Figma,Postman,Signal,obsidian,teams-for-linux} ~/.var/app/*/cache 2>/dev/null

Inside an app folder, these subfolders are caches:

Some apps nest them one level deeper, in Partitions/<name> (Slack workspaces, Figma’s DesktopProfile).

Delete them by hand, safely

  1. Quit the app completely (on a Mac, also from the menu bar; on Ubuntu, check pgrep -a slack). Deleting under a running app corrupts its state.
  2. Delete only the cache folders above:
cd ~/Library/Application\ Support/Slack      # Ubuntu: ~/.config/Slack
rm -r "Cache" "Code Cache" "GPUCache" "Service Worker/CacheStorage"
  1. Start the app. It rebuilds the cache; the first start is slower and images reload.

Do not delete these: Local Storage, Session Storage, IndexedDB, Cookies, databases, Preferences, config.json. They hold your login and local data. Deleting them logs you out at best, and loses data kept only on this computer at worst. In Signal, for instance, your messages are stored locally, so delete nothing there except the folders in the list above.

Why is it so big?

Music and podcast apps (Spotify, Apple Music, Podcasts) keep caches the same way, plus offline downloads: see their downloads and cache.

How CleanMate does it

If your disk is still full, the next suspects are the language versions you installed (old Node, Python, Ruby, Rust and Go versions), Free up disk space on a Mac as a developer and on Ubuntu. To compare CleanMate with other cleaners, see the comparison.

FAQ

Will I be logged out of Slack or Discord if I delete the cache? No, as long as you delete only the cache folders. Logins are in Cookies and Local Storage.

Is it safe to delete the Slack cache on a Mac? Yes. Quit Slack, delete Cache, Code Cache, GPUCache and Service Worker/CacheStorage in ~/Library/Application Support/Slack. Slack rebuilds them.

Why does Discord take so much space on my disk? Its cache holds the images, videos and scripts of every server you scroll through. It is rebuilt as you use the app.

Can I stop the cache from growing? Not in the app’s settings. Cleaning it from time to time is the usual answer.

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 →