User Agents

Web browsers and everyday web tech, explained

How to Clear Cache on iMac: Step-by-Step Guide

· 5 min read · Cookies and Cache

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Clearing the cache on your iMac frees up storage space and can fix slow performance, glitchy apps, or outdated content. This guide covers system, user, and app caches, plus browser caches (Safari, Chrome, Firefox). You don't need any special tools—just a few minutes and a basic understanding of your iMac's file system. Always restart your iMac after clearing caches to ensure changes take effect.

What You'll Need

  • Your iMac with macOS (any recent version)
  • Admin account access (for some system caches)
  • Optional: a backup (Time Machine or other) before deleting anything

Step-by-Step

Clear User Cache (Most Common)

  1. Open Finder – Click the Finder icon in the Dock (the blue face icon).
  2. Go to the Library folder – In the top menu bar, click Go and then Go to Folder… (or press Shift + Command + G).
  3. Type the path – Enter ~/Library/Caches and press Return. This opens the Caches folder for your user account.
  4. Review the contents – You'll see folders for each app (e.g., com.apple.Safari, com.google.Chrome). Do not delete the entire folder; instead, go inside each app's folder and delete the files inside, or delete the app-specific folder if you're sure you don't need it (it will be recreated).
  5. Delete selectively – For most apps, you can safely delete the contents of their cache folder. For example, open the com.apple.Safari folder and delete the Cache.db file or the WebKit subfolder. Repeat for apps you use often.
  6. Empty Trash – Right-click the Trash icon in the Dock and select Empty Trash.

Clear System Cache (Requires Admin)

  1. Open Finder – Same as above.
  2. Go to System Library – Use Shift + Command + G and type /Library/Caches (no tilde). This is the system-wide cache.
  3. Authenticate if prompted – You may need to enter your admin password to access or modify files here.
  4. Delete carefully – Only remove folders you recognize, such as com.apple.amsd or com.apple.softwareupdate. Do not delete the com.apple.kext.caches folder—it's essential for system stability.
  5. Empty Trash – As before.

Clear Browser Cache (Safari)

  1. Open Safari – Launch Safari from the Dock or Applications.
  2. Go to Settings – Click Safari in the top menu bar, then Settings… (or press Command + ,).
  3. Click the Privacy tab – In the Settings window, select the Privacy icon (the hand icon).
  4. Click “Manage Website Data…” – This shows a list of websites storing data.
  5. Remove all or select – Click Remove All to clear all website data, or select specific sites and click Remove. Confirm when prompted.
  6. Close Settings – Done.

Clear Browser Cache (Chrome/Firefox)

  1. Open the browser – Launch Chrome or Firefox.
  2. Go to History – In Chrome, click the three-dot menu > History > History. In Firefox, press Command + Shift + H.
  3. Clear browsing data – In Chrome, click Clear browsing data on the left. In Firefox, click Clear Recent History in the menu.
  4. Select time range – Choose All time to clear everything.
  5. Check “Cached images and files” – Make sure this box is checked. You can also clear cookies if you want (but you'll be logged out of sites).
  6. Click Clear data – Confirm and wait a few seconds.

Common Mistakes

  • Deleting the entire Caches folder – This can cause apps to misbehave or crash. Always delete contents inside, not the folder itself.
  • Deleting system-critical caches – Avoid touching com.apple.kext.caches or anything in /System/Library/Caches. These are needed for booting.
  • Not emptying Trash – Files still take up space until you empty the Trash.
  • Skipping a restart – Some caches are recreated on the fly; restarting ensures a clean slate.
  • Using third-party “cleaner” apps – They can delete too much; manual clearing is safer.

Tips

  • Clear caches regularly – Once a month is enough for most users.
  • Use storage management – Go to Apple menu > About This Mac > Storage > Manage to see large files and get recommendations.
  • Back up first – If you're unsure, make a Time Machine backup before deleting.
  • Check for app-specific caches – Some apps (like Adobe or Microsoft) have their own cache folders inside their application support folders. You can clear those too, but only if you know what you're doing.
  • Use Terminal (advanced users) – You can type sudo rm -rf ~/Library/Caches/* but it's risky; stick to Finder unless you're comfortable.

Troubleshooting

  • “The operation can’t be completed because you don’t have permission” – This happens with system caches. Log in as an admin, or use Get Info on the folder and change permissions to “Read & Write” for your user.
  • Apps crash after clearing – Usually the cache is rebuilt automatically. If not, restart the app. If it persists, try restarting your iMac.
  • Storage space didn’t increase – You may have deleted only small files. Check the Trash is emptied, and consider clearing browser caches (which can be large) or using the Storage Management tool.
  • Browser still shows old content – Hard refresh the page (hold Shift + click the reload button) or clear cookies as well.
  • iMac feels slower after clearing – This is temporary; the system is rebuilding caches. Give it a few minutes or restart.

Frequently Asked Questions

Is it safe to delete all caches on my iMac?

Yes, but only the user-level caches in ~/Library/Caches. System caches should be left alone unless you know exactly what you're doing.

Will clearing cache log me out of websites?

No, clearing only the cache (not cookies) keeps you logged in. If you clear cookies, you'll be logged out.

How often should I clear cache?

Once a month is a good rule of thumb. If you notice performance issues or storage low, do it more often.

Can I clear cache without losing my browsing history?

Yes, in Safari's “Manage Website Data” you can remove individual sites without erasing history. In Chrome/Firefox, uncheck “Browsing history” when clearing data.

Do I need to restart my iMac after clearing cache?

It's recommended, but not mandatory. A restart ensures all system processes start fresh.

What's the difference between user cache and system cache?

User cache is per-account and safe to clear. System cache is shared and used by macOS; deleting it can cause issues.