How to Empty or Clean Up System Data on MacBook Pro (2017-2020)

Are you seeing a massive “System Data” category consuming valuable storage space on your MacBook Pro? This frustrating storage category, which can balloon to hundreds of gigabytes, contains various system files that aren’t easily categorized. This comprehensive guide will help you safely reduce System Data storage without risking your macOS stability.


Understanding System Data

What is System Data?

Formerly called “Other” in older macOS versions, System Data includes:

  • System caches (application and macOS temporary files)
  • Log files (system and application logs)
  • Time Machine local snapshots (biggest culprit)
  • Application support files (browser caches, database files)
  • iOS device backups (if backing up iPhone/iPad to Mac)
  • Fonts, plugins, and extensions
  • Virtual machine files (Docker, Parallels, VMware)
  • Leftover software installers and updates
  • System indexes and metadata

Why It Grows Large:

  • Time Machine creates local snapshots when backup drive isn’t connected
  • Applications accumulate cache files over time
  • System updates leave temporary files
  • Logs grow with system usage
  • Old iOS backups accumulate
  • Virtual machines store data here

Step-by-Step Cleanup Guide

Step 1: Initial Assessment

Check Your Current Storage:

  1. Click Apple menu → About This Mac → Storage
  2. Click “Manage” or “Info” to see detailed breakdown
  3. Note the System Data size

Use Terminal to See Details:

# Check total disk usage
df -h
# Check home directory size
du -sh ~/
# List Time Machine snapshots
tmutil listlocalsnapshots /

Step 2: Safe Manual Cleanup Methods

1. Clear User Cache Files:

User Cache (Safe to Delete):

  1. Open Finder
  2. Press Cmd+Shift+G (Go to Folder)
  3. Enter: ~/Library/Caches
  4. Select all folders except system-critical ones
  5. Move to Trash → Empty Trash

System Cache (Requires Caution):

  1. Go to Folder: /Library/Caches
  2. Only delete clearly identifiable app caches
  3. Avoid deleting macOS system caches

2. Clear Log Files:

  1. Go to Folder: ~/Library/Logs
  2. Delete old log files (keep recent ones if troubleshooting)
  3. Go to Folder: /Library/Logs
  4. Delete old application logs

3. Remove iOS Backups:

  1. Open Finder
  2. Press Cmd+Shift+G
  3. Enter: ~/Library/Application Support/MobileSync/Backup/
  4. Delete old backups (keep recent ones if needed)

4. Clean Browser Caches:

Safari:

  1. Safari → Settings → Advanced
  2. Enable “Show Develop menu in menu bar”
  3. Develop → Empty Caches

Chrome:

  1. Chrome → Settings → Privacy and Security
  2. Clear browsing data
  3. Select “Cached images and files”
  4. Choose “All time”

Firefox:

  1. Firefox → Settings → Privacy & Security
  2. Scroll to “Cookies and Site Data”
  3. Click “Clear Data”

Step 3: Time Machine Local Snapshots (Major Culprit)

Understanding Time Machine Snapshots:

When your Time Machine backup drive isn’t connected, macOS creates local snapshots to preserve restore points. These can consume 50-200GB+.

Check for Snapshots:

# List all local snapshots
tmutil listlocalsnapshots /

Delete Unnecessary Snapshots:

Delete specific snapshot:

sudo tmutil deletelocalsnapshots YYYY-MM-DD-HHMMSS

Delete all snapshots:

for d in $(tmutil listlocalsnapshots / | grep -o 'com.apple.TimeMachine.*'); do sudo tmutil deletelocalsnapshots "${d#com.apple.TimeMachine.}"; done

Prevent Future Snapshot Buildup:

  1. Connect Time Machine drive regularly
  2. Set manual backups: System Settings → General → Time Machine → Options → Backup Frequency → Manually
  3. Use different backup solution if Time Machine isn’t essential

Step 4: Application-Specific Cleanup

Xcode Developer Files (If Applicable):

# Clean Xcode derived data
rm -rf ~/Library/Developer/Xcode/DerivedData/
# Clean Xcode archives
rm -rf ~/Library/Developer/Xcode/Archives/

Docker/Virtual Machine Files:

  1. Check Docker storage: docker system df
  2. Clean unused: docker system prune -a
  3. For VirtualBox/VMware: Check virtual disk locations

Mail Downloads:

  1. Open Mail app
  2. Mailbox → Erase Deleted Items
  3. Mailbox → Erase Junk Mail

Step 5: macOS Built-in Tools

Storage Management Tool:

  1. Apple menu → About This Mac → Storage → Manage
  2. Use these features:
  • Store in iCloud (moves files to iCloud)
  • Optimize Storage (removes watched TV/movies)
  • Empty Trash Automatically
  • Reduce Clutter (suggests large files to delete)

First Aid with Disk Utility:

  1. Open Disk Utility (Applications → Utilities)
  2. Select your startup disk
  3. Click “First Aid”
  4. Run repair (can fix storage reporting issues)

Step 6: Third-Party Analysis Tools (Safe Options)

Recommended Free Tools:

  1. OmniDiskSweeper:
  • Shows all files by size
  • Safe to browse and delete non-system files
  • Download from omnigroup.com
  1. GrandPerspective:
  • Visual disk usage mapper
  • Identifies large files visually
  • Free and open source
  1. DaisyDisk (Paid but Excellent):
  • Beautiful visual interface
  • Safe deletion options
  • $9.99 but often worth it

What to Avoid:

  • “Cleaner” apps that promise magical fixes
  • Registry cleaners (macOS doesn’t have a Windows-style registry)
  • “Optimization” tools that make unrealistic claims

Step 7: Regular Maintenance Routine

Daily/Weekly:

  1. Empty Trash regularly
  2. Clear Downloads folder of unnecessary files
  3. Restart Mac at least once a week (clears caches)

Monthly:

  1. Review large files with OmniDiskSweeper
  2. Clear browser caches
  3. Check Time Machine snapshots
  4. Update applications (newer versions often have better cache management)

Quarterly:

  1. Deep clean user cache folders
  2. Review iOS backups
  3. Check for duplicate files
  4. Backup and archive old projects

Advanced Techniques (Proceed with Caution)

1. Safe Mode Cleanup:

  1. Restart Mac while holding Shift key
  2. Login in Safe Mode
  3. Wait 10 minutes (macOS performs maintenance)
  4. Restart normally

2. Rebuild Spotlight Index:

  1. System Settings → Siri & Spotlight → Spotlight Privacy
  2. Add your hard drive to privacy list
  3. Wait 30 seconds
  4. Remove from privacy list
  5. Let Spotlight reindex (may take hours)

3. Clear System Temporary Files:

# Clear temporary files (safe)
sudo rm -rf /private/var/tmp/*
sudo rm -rf /private/var/folders/*/*/C/

4. Manage Virtual Memory Swap Files:

# Check swap usage
sysctl vm.swapusage
# After reboot, swap files should clear

When to Consider More Drastic Measures

If System Data Exceeds 200GB:

Option 1: Create New User Account:

  1. System Settings → Users & Groups
  2. Add new administrator account
  3. Log into new account
  4. Check System Data size (should be minimal)
  5. Gradually migrate files from old account

Option 2: Archive and Install:

  1. Backup everything with Time Machine
  2. Create macOS installer USB drive
  3. Install macOS over existing installation
  4. Preserves user data but resets system files

Option 3: Complete Erase and Reinstall:

Last Resort Only:

  1. Complete backup of all important data
  2. Boot to Recovery Mode (Cmd+R at startup)
  3. Disk Utility → Erase startup disk
  4. Reinstall macOS
  5. Restore from backup

Preventative Measures

Storage Best Practices:

1. Maintain Adequate Free Space:

  • Minimum: 10% of total disk space free
  • Optimal: 20-30% free space
  • Critical: Below 5% can cause system instability

2. Use External Storage:

  • Media files: Store photos, videos, music externally
  • Projects: Archive completed work to external drives
  • Backups: Regular Time Machine backups to external drive

3. Cloud Storage Strategy:

  • iCloud Drive for Documents and Desktop
  • Dropbox/Google Drive for collaboration
  • Selective sync (don’t sync everything locally)

4. Application Management:

  • Regularly update all applications
  • Uninstall unused apps completely
  • Monitor app storage usage regularly

Understanding What NOT to Do

Avoid These Common Mistakes:

1. Don’t Use “Cleaner” Apps:

  • MacKeeper, CleanMyMac, etc. often cause more problems
  • Can delete essential system files
  • May install malware or adware
  • Unnecessary for macOS maintenance

2. Don’t Manually Delete System Files:

  • Avoid /System, /Library (except Caches/Logs)
  • Never delete .plist files randomly
  • Don’t modify system applications

3. Don’t Disable Essential Services:

  • Time Machine (manage it, don’t disable)
  • Spotlight (rebuild if needed, don’t disable)
  • System Integrity Protection (keep enabled)

4. Don’t Follow Random Online Guides:

  • Verify sources before executing commands
  • Understand what commands do
  • Backup before making major changes

Monitoring and Maintenance Tools

Built-in Monitoring:

  1. Activity Monitor: Check real-time disk usage
  2. Console App: Monitor log file growth
  3. Storage Management: Regular checks

Third-Party Monitoring:

  1. iStat Menus: Menu bar disk monitoring
  2. DaisyDisk: Regular storage audits
  3. OmniDiskSweeper: Monthly deep scans

Automation Scripts:

#!/bin/bash
# Simple cleanup script (run monthly)
echo "Cleaning user caches..."
rm -rf ~/Library/Caches/*
echo "Clearing user logs..."
find ~/Library/Logs -type f -name "*.log" -mtime +30 -delete
echo "Checking Time Machine snapshots..."
tmutil listlocalsnapshots /
echo "Done."

Frequently Asked Questions

Q: How much System Data is normal?

A: Typically 10-50GB. Over 100GB indicates issues needing attention.

Q: Will clearing caches break my applications?

A: No, applications regenerate caches as needed. Some apps may be slightly slower on next launch.

Q: How often should I clean System Data?

A: Monthly maintenance is sufficient for most users. Don’t obsess over daily cleaning.

Q: Can I move System Data to an external drive?

A: No, System Data must remain on the startup disk. Move user files instead.

Q: Will upgrading macOS reduce System Data?

A: Sometimes, as upgrades include cleanup routines, but not guaranteed.

Q: Is it safe to delete all Time Machine snapshots?

A: Yes, but you lose local restore points. Connect your backup drive regularly instead.

Q: Why does System Data grow back after cleaning?

A: It’s normal growth from system operation. Focus on managing excessive growth, not eliminating it entirely.

Q: Should I worry about System Data on an SSD?

A: SSDs handle numerous small files better than HDDs, but excessive System Data still consumes valuable space.


Troubleshooting Persistent Issues

If System Data Keeps Growing:

1. Identify the Culprit:

# Monitor disk usage changes
sudo fs_usage -w -f filesys
# Check largest directories
sudo du -ah / | sort -rh | head -20

2. Check for Application Issues:

  • Monitor specific app cache growth
  • Contact app developer if their cache is excessive
  • Consider alternatives for problematic apps

3. Check for System Errors:

# Check system logs for storage errors
log show --predicate 'eventMessage contains "disk" or eventMessage contains "storage"' --last 24h

4. Professional Help:

  • Apple Store Genius Bar
  • Apple Support remote diagnostics
  • Certified Mac technicians

Quick Reference Guide

For Immediate Space Recovery:

  1. Delete Time Machine snapshots (biggest impact)
  2. Clear browser caches (quick win)
  3. Empty Trash (often forgotten)
  4. Remove old iOS backups (if present)

For Regular Maintenance:

  1. Weekly restart
  2. Monthly cache cleaning
  3. Quarterly deep scan
  4. Annual storage audit

For Power Users:

  1. Automate cleanup with scripts
  2. Monitor with third-party tools
  3. Use external storage strategically
  4. Maintain multiple backups

Final Recommendations

Most Effective Approach:

  1. Start with Time Machine snapshots – usually the largest component
  2. Implement regular maintenance – prevents reoccurrence
  3. Use external storage – keep primary drive lean
  4. Monitor growth – catch issues early

Balance is Key:

Don’t obsess over eliminating System Data completely. macOS needs some cache files for optimal performance. Focus on managing excessive growth, not achieving zero System Data.

When to Seek Help:

  • System Data exceeds 200GB consistently
  • Cleaning provides minimal space recovery
  • System performance is affected
  • You’re unsure about any cleanup steps

Remember: Regular, gentle maintenance is better than drastic, infrequent cleanups. Your MacBook Pro (2017-2020) can continue serving you well with proper storage management.

For official Apple guidance: https://support.apple.com/en-us/HT206996

Leave a comment