Your Mac stores temporary files called cache to speed up apps and websites. Over time, this cache grows—sometimes to tens of gigabytes—taking up valuable...
Your Mac stores temporary files called cache to speed up apps and websites. Over time, this cache grows—sometimes to tens of gigabytes—taking up valuable storage and occasionally causing problems when cached data becomes corrupted.
Clearing cache can free significant disk space and resolve issues like slow performance, app crashes, and website loading problems. But not all cache should be deleted, and doing it wrong can cause issues.
Let's clear your Mac's cache safely and effectively.
Types of Cache on Mac
System Cache
- Created by macOS
- Speeds up system operations
- Location: `/Library/Caches/`
- Generally safe to clear, but macOS manages it
User Cache
- Created by apps you use
- Stores app-specific temporary data
- Location: `~/Library/Caches/`
- Safe to clear, apps rebuild as needed
Browser Cache
- Stores website data for faster loading
- Images, scripts, stylesheets
- Each browser has its own cache
- Safe and often beneficial to clear
DNS Cache
- Stores domain name lookups
- Speeds up website connections
- Can cause issues with changed DNS records
- Safe to clear via Terminal
Clearing cache is generally safe—apps rebuild what they need. But always have a backup before clearing system cache.
Method 1: Clear User Cache (Manual)
Steps
- Open Finder
- Click Go in menu bar
- Hold Option key—"Library" appears
- Click Library
- Open Caches folder
- Select folders to delete (or all)
- Move to Trash
- Empty Trash
What to Expect
- Apps may take longer to open initially
- Apps rebuild necessary cache automatically
- You may need to re-login to some apps
- Typically frees 1-10+ GB
Safety Tips
- Don't delete the Caches folder itself—only contents
- If unsure about a folder, leave it
- Restart Mac after clearing
Method 2: Clear System Cache (Manual)
Steps
- Open Finder
- Press ⌘ + Shift + G (Go to Folder)
- Type `/Library/Caches/` and press Enter
- Select cache folders to delete
- Enter admin password when prompted
- Empty Trash
Caution
System cache is more sensitive than user cache:
- Only clear if experiencing issues
- Don't delete folders you don't recognize
- Restart immediately after clearing
Method 3: Clear Browser Cache
Safari
- Open Safari
- Click Safari > Settings (or Preferences)
- Go to Privacy tab
- Click Manage Website Data
- Click Remove All
Or use keyboard shortcut:
- ⌘ + Option + E clears cache without dialog
Chrome
- Open Chrome
- Press ⌘ + Shift + Delete
- Select time range (All time for complete clear)
- Check "Cached images and files"
- Click Clear data
Firefox
- Open Firefox
- Press ⌘ + Shift + Delete
- Select time range
- Check "Cache"
- Click Clear Now
Method 4: Clear DNS Cache
DNS cache stores website address lookups. Clear it when:
- Websites won't load but internet works
- Recently changed DNS settings
- Website shows old content
Terminal Command
- Open Terminal (Applications > Utilities)
- Enter command based on macOS version:
macOS Monterey and later: ``` sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder ```
macOS Big Sur: ``` sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder ```
- Enter admin password
- No confirmation message—it just works
Method 5: Use Storage Management
Built-in macOS Tool
- Click Apple menu > About This Mac
- Click Storage tab
- Click Manage
- Review recommendations:
* Store in iCloud * Optimize Storage * Empty Trash Automatically * Reduce Clutter
This doesn't directly clear cache but helps manage storage.
Method 6: Third-Party Apps
CleanMyMac X (~$40/year)
- One-click cache clearing
- Shows cache size before deleting
- Clears system, user, and browser cache
- Additional cleanup features
OnyX (Free)
- Maintenance and optimization
- Cache clearing options
- System tweaks
- For advanced users
AppCleaner (Free)
- Removes apps completely
- Finds associated cache files
- Prevents orphaned cache
When to Clear Cache
Clear Cache When:
- Running low on disk space
- Apps behaving strangely
- Websites showing old content
- After major macOS update
- Troubleshooting performance issues
Don't Clear Cache When:
- Everything is working fine
- You're about to do important work (apps will be slower initially)
- You're unsure what you're deleting
What Clearing Cache Affects
Temporary Inconveniences
- Apps open slower initially
- Websites load slower first time
- May need to re-login to some services
- Preferences in some apps may reset
Benefits
- Frees disk space (often several GB)
- Fixes corrupted cache issues
- Resolves some app crashes
- Can improve performance
Safe Cache Clearing Checklist
Before Clearing
- [ ] Backup important data (Time Machine) - [ ] Close all applications - [ ] Note any apps you're logged into
After Clearing
- [ ] Restart Mac - [ ] Open frequently used apps to rebuild cache - [ ] Re-login to services as needed - [ ] Verify everything works
Automating Cache Clearing
Scheduled Maintenance
macOS runs automatic maintenance scripts, but you can trigger them:
- Open Terminal
- Run: `sudo periodic daily weekly monthly`
- Enter password
This runs system maintenance including some cache management.
Third-Party Scheduling
Apps like CleanMyMac can schedule regular cache clearing—useful if you frequently run low on space.
Got Questions About Clearing Cache on Mac? Let's Clear Things Up.
Is it safe to clear all cache on Mac?
Clearing user cache (`~/Library/Caches/`) is generally safe—apps rebuild what they need. System cache (`/Library/Caches/`) is more sensitive; only clear specific folders if troubleshooting. Never delete the Caches folders themselves, only their contents.
How much space will clearing cache free?
Typically 2-10 GB, sometimes more if you haven't cleared in years or use many apps. Browser cache alone can be several gigabytes. Check folder sizes before deleting to see potential savings.
Will clearing cache delete my passwords?
No. Passwords are stored in Keychain, not cache. However, clearing browser data (not just cache) might remove saved passwords if you select that option. Cache clearing only removes temporary files.
How often should I clear cache?
Only when needed—when running low on space or troubleshooting issues. Frequent clearing is counterproductive; cache exists to speed things up. Every few months is reasonable for maintenance.
Why does cache keep coming back?
That's normal and expected. Cache is created as you use apps and browse websites. It's temporary storage that improves performance. Clearing it provides temporary space; it will rebuild with use.
Clearing cache on Mac is a useful maintenance task that can free space and resolve issues. Start with browser cache for quick wins, then user cache if you need more space. For more Mac tips, check our guides on taking screenshots and MacBook Air vs MacBook Pro.
Discussion
Sign up or sign in to join the conversation.