Skip to content

Instantly share code, notes, and snippets.

@umutbasal
Created December 27, 2025 14:26
Show Gist options
  • Select an option

  • Save umutbasal/201a3baa59a7303ea3510688a661139b to your computer and use it in GitHub Desktop.

Select an option

Save umutbasal/201a3baa59a7303ea3510688a661139b to your computer and use it in GitHub Desktop.
#!/bin/bash
set -euo pipefail
PATHS=(
~/Library/Developer/CoreSimulator/Caches
~/Library/Developer/CoreSimulator/Devices
~/Library/Caches/com.apple.dt.Xcode
~/Library/Developer/Xcode/iOS\ Device\ Logs
~/Library/Developer/Xcode/watchOS\ Device\ Logs
~/Library/Developer/Xcode/Products
~/Library/Developer/Xcode/DerivedData
~/Library/Developer/Xcode/Archives
~/Library/Application\ Support/Code
~/Library/Caches/com.sublimetext.*
~/Library/Application\ Support/discord
~/Library/Application\ Support/legcord
~/Library/Application\ Support/Slack
~/Library/Caches/us.zoom.xos
~/Library/Caches/com.tencent.xinWeChat
~/Library/Caches/ru.keepcoder.Telegram
~/Library/Caches/com.microsoft.teams2
~/Library/Caches/net.whatsapp.WhatsApp
~/Library/Caches/com.skype.skype
~/Library/Caches/com.openai.chat
~/Library/Caches/com.anthropic.claudefordesktop
~/Library/Logs/Claude
~/Library/Caches/Adobe
~/Library/Caches/com.adobe.*
~/Library/Caches/com.figma.Desktop
~/Library/Caches/com.raycast.macos
~/Library/Caches/com.spotify.client
~/Library/Application\ Support/Spotify
~/Library/Caches/org.videolan.vlc
~/Library/Caches/io.mpv
~/Library/Caches/com.colliderli.iina
~/Library/Caches/com.valvesoftware.steam
~/Library/Application\ Support/Steam
~/Library/Caches/com.epicgames.EpicGamesLauncher
~/Library/Caches/com.blizzard.Battle.net
~/Library/Caches/notion.id
~/Library/Caches/md.obsidian
~/Library/Caches/com.logseq.*
)
for p in "${PATHS[@]}"; do
[[ -e $p ]] || continue
du -sh "$p" 2>/dev/null
done | sort -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment