CleanMate

All guides · macOS and Ubuntu · Updated

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.

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

CleanMate on Ubuntu asking before it cleans game launcher caches such as Steam and Minecraft, with each item and its size

Game launchers are small browsers: they keep the web pages of their store and library, artwork, update manifests, logs and crash dumps next to your games. None of it is a game or a save, and the launcher downloads or writes it again. With Steam that is often 0.5–3 GB.

See how big they are on a Mac:

du -sh ~/Library/Application\ Support/{Steam,Epic,Battle.net,GOG.com,minecraft,PrismLauncher} 2>/dev/null

On Ubuntu:

du -sh ~/.local/share/Steam ~/.steam/debian-installation ~/.var/app/com.valvesoftware.Steam ~/snap/steam \
  ~/.minecraft ~/.local/share/PrismLauncher 2>/dev/null

These totals include your games. Only the folders below are caches.

What is safe to delete

Quit the launcher first (and the game: Minecraft runs as a java process that can outlive the launcher). Delete what is inside these folders, not the launcher’s whole folder.

Steam (Mac: ~/Library/Application Support/Steam; Ubuntu: ~/.local/share/Steam or, with the steam package from Ubuntu’s archive, ~/.steam/debian-installation (~/.steam/root and ~/.steam/steam link to whichever you have), Flatpak ~/.var/app/com.valvesoftware.Steam/data/Steam, Snap ~/snap/steam/common/.local/share/Steam):

appcache/httpcache    config/htmlcache    depotcache    logs    dumps

On a Mac also htmlcache, appcache/librarycache (library artwork) and steamapps/shadercache. On Ubuntu the shader cache comes with Proton: see Steam, Proton and shader cache on Ubuntu.

Epic Games Launcher (Mac): ~/Library/Application Support/Epic/EpicGamesLauncher/Saved/webcache* and Saved/Logs.

Battle.net (Mac): BrowserCaches, Cache and Logs in ~/Library/Application Support/Battle.net.

GOG Galaxy (Mac): ~/Library/Application Support/GOG.com/Galaxy/webcache.

Minecraft (Mac: ~/Library/Application Support/minecraft; Ubuntu: ~/.minecraft, Flatpak ~/.var/app/com.mojang.Minecraft/.minecraft): logs, crash-reports, webcache2 (older launchers: webcache).

Prism Launcher (Mac: ~/Library/Application Support/PrismLauncher; Ubuntu: ~/.local/share/PrismLauncher, also Flatpak): logs, cache, and logs and crash-reports inside each instance (instances/<name>/.minecraft or minecraft).

For example, with Steam closed:

rm -r ~/Library/Application\ Support/Steam/appcache/httpcache/*

On Ubuntu ~/.steam/root works for both deb locations:

rm -r ~/.steam/root/appcache/httpcache/*

What to never delete

To get back space from games themselves, uninstall them in the launcher.

How CleanMate does it

CleanMate lists each launcher as its own item with its size, empties only the cache folders above and keeps the folders themselves. Nothing is removed until you confirm.

Games, downloads in progress, saves, worlds, mods, resource packs, screenshots, settings and sign-ins are never touched. Old Proton and Wine builds and Lutris and Heroic caches on Ubuntu: Steam, Proton and shader cache. For the rest of the disk: Free up disk space on a Mac, on Ubuntu. Download CleanMate.

FAQ

Will I lose my games or saves? No, as long as you delete only the folders listed above. Games are in steamapps and the launchers’ library folders; saves are in userdata or the game’s own folder.

Will I have to sign in again? No. Sign-ins are in Steam’s ssfn* files and config, and in the launchers’ account files, none of which are caches.

Why does Steam’s web cache grow so much? The store, library and community pages are a built-in browser, and it keeps every image and script it loaded.

Is it safe to delete Minecraft logs and crash reports? Yes, with the game closed. They are only for troubleshooting; the game writes new ones.

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 →