DEV Community

Sh Raj
Sh Raj

Posted on

๐Ÿงน Mac Storage Hog Audit

๐Ÿงน Mac Storage Hog Audit โ€“ README

This document lists potential storage occupiers on macOS. These are common folders, files, caches, and apps that may consume a significant amount of disk space over time.


๐Ÿง‘โ€๐Ÿ’ป For Developers

๐Ÿ“ฆ Node.js / JavaScript

  • /node_modules/ (inside projects)
  • ~/.npm/ (NPM cache)
  • ~/.yarn/ (Yarn cache)
  • ~/.pnpm-store/ (PNPM cache)
  • ~/.nvm/versions/ (Node versions if using NVM)
  • Global NPM modules: npm list -g

๐Ÿ Python

  • ~/.virtualenvs/ (virtual environments - if using virtualenv or pipenv)
  • ~/anaconda3/ (if using Anaconda)
  • ~/miniconda3/
  • __pycache__/ folders in Python projects
  • Jupyter cache and notebooks

๐Ÿณ Docker

  • Docker images, containers, and volumes
  • ~/Library/Containers/com.docker.docker/
  • Docker Desktop's internal disk

๐Ÿงช Xcode & Dev Tools

  • ~/Library/Developer/Xcode/DerivedData/
  • ~/Library/Developer/CoreSimulator/Devices/
  • ~/Library/Developer/XCPGDevices/
  • ~/Library/Caches/com.apple.dt.Xcode/
  • iOS Device backups

โš™๏ธ Homebrew

  • /usr/local/Cellar/
  • /opt/homebrew/Cellar/ (Apple Silicon)
  • /Library/Caches/Homebrew/

๐ŸŒ General Caches & Temp Files

๐ŸŒ Web Browsers

  • Chrome: ~/Library/Application Support/Google/Chrome/
  • Safari: ~/Library/Safari/ and ~/Library/Caches/com.apple.Safari/
  • Firefox: ~/Library/Application Support/Firefox/
  • Web Worker storage (e.g. YouTube): ~/Library/Caches/com.google.Chrome/Default/Service Worker/

๐Ÿ’ฌ Messaging & Collaboration Tools

  • Slack: ~/Library/Application Support/Slack/
  • Discord: ~/Library/Application Support/discord/
  • Microsoft Teams, Zoom, etc.

๐Ÿ’Œ Mail

  • ~/Library/Mail/
  • ~/Library/Containers/com.apple.mail/
  • Mail attachments and old messages

๐Ÿ“ฉ Downloads Folder

  • ~/Downloads/ โ€“ common for videos, installers, and large files

๐Ÿ“ฆ System, Apps & Misc

๐Ÿ—‘ Trash

  • ~/.Trash/

๐Ÿ“ Large Files

  • Use Finder โ†’ Cmd + F โ†’ Filter by File Size and Kind

๐Ÿ“‚ "Other" Storage in Disk Usage

  • App extensions
  • Application support data
  • Fonts, logs, old updates

๐Ÿงพ Log Files

  • ~/Library/Logs/
  • /Library/Logs/

๐Ÿ’ฟ Time Machine Local Snapshots

  • /Volumes/com.apple.TimeMachine.localsnapshots/

๐Ÿ’ก Spotlight Index

  • /var/folders/ โ€“ includes caches, index databases, etc.

๐ŸŽฌ Media & Creative Software

๐ŸŽต iTunes / Music

  • ~/Music/iTunes/iTunes Media/

๐ŸŽฅ iMovie / Final Cut Pro

  • Render files, libraries, and caches

๐Ÿ“ธ Photos

  • ~/Pictures/Photos Library.photoslibrary/

๐Ÿงฐ System Tools & Others

๐Ÿงฎ Virtualization

  • Parallels, VMWare, VirtualBox images (huge disk files)

โŒจ๏ธ Emulators & IDEs

  • Android Studio: ~/Library/Android/sdk/
  • VSCode extensions: ~/.vscode/
  • IntelliJ, PyCharm caches

๐Ÿงฑ Design Tools

  • Figma, Sketch, Adobe caches and projects

๐Ÿ“‚ Common Folders to Inspect

Folder Description
~/Library/Caches/ General app cache
/Library/Caches/ System-wide cache (admin required)
~/Library/Application Support/ App data (often large)
~/Library/Preferences/ User settings (small)
~/Library/Logs/ App/system logs
~/.Trash/ Deleted files not yet purged
~/Movies/, ~/Pictures/ Common for large personal media

This list gives you a holistic view of what might be bloating your Mac. Itโ€™s great for building a cleanup script, audit tool, or even a GUI app for end users and developers alike.

Top comments (0)