User Agents

Web browsers and everyday web tech, explained

How to Clear Cache on MacBook Air

· 4 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 MacBook Air frees up storage space and can fix minor glitches like slow performance, outdated web pages, or apps that misbehave. The process is safe and doesn't delete personal files, passwords, or documents. You'll need your MacBook Air and, for some steps, an administrator password. No extra software is required.

What You'll Need

  • Your MacBook Air (any model running macOS)
  • An administrator account (you'll be prompted for a password when deleting certain system caches)
  • About 10 minutes of time

Step-by-Step

Clear Safari Cache

  1. Open Safari.
  2. In the top menu bar, click Safari and select Settings (or Preferences in older macOS versions).
  3. Click the Privacy tab.
  4. Click Manage Website Data.
  5. Click Remove All to clear all cached website data, or select specific sites and click Remove.
  6. Click Done.

Clear Chrome Cache

  1. Open Google Chrome.
  2. Click the three-dot menu in the top-right corner.
  3. Select More tools > Clear browsing data.
  4. In the dialog that appears, choose a time range (e.g., All time to clear everything).
  5. Check the boxes for Cached images and files (and optionally other data you want to clear).
  6. Click Clear data.

Clear Firefox Cache

  1. Open Firefox.
  2. Click the three-line menu (hamburger) in the top-right corner.
  3. Select Settings (or Preferences).
  4. Go to Privacy & Security.
  5. Scroll to Cookies and Site Data and click Clear Data.
  6. Check Cached Web Content, then click Clear.

Clear App Caches (User-Level)

  1. Open Finder.
  2. In the top menu, click Go and select Go to Folder (or press Shift + Command + G).
  3. Type ~/Library/Caches and press Return.
  4. You'll see a list of folders named after apps (e.g., com.apple.Safari, com.google.Chrome).
  5. Open the folder for the app you want to clear, and delete the files inside. You can also delete the entire app folder—it will be recreated when the app next runs.
  6. Empty the Trash afterward.

Clear System Cache (Advanced, Optional)

  1. Open Finder and press Shift + Command + G.
  2. Type /Library/Caches and press Return.
  3. You'll see system-level cache folders. Be careful: only delete folders for apps you recognize and are not currently running.
  4. You may be asked for your administrator password to modify these folders.
  5. After deleting, empty the Trash.

Clear DNS Cache (Optional)

  1. Open Terminal (found in Applications > Utilities).
  2. Type the following command and press Return: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
  3. Enter your administrator password when prompted.
  4. This clears DNS caches, which can help with network issues.

Common Mistakes

  • Deleting the entire Caches folder: Never delete the ~/Library/Caches folder itself—only its contents. The folder is needed by macOS.
  • Clearing cache while an app is running: If the app is open, it may recreate cache files immediately, or you might encounter errors. Quit the app first.
  • Using third-party “cleaner” apps: Many such apps are unnecessary and can delete important files. Manual clearing is safer.
  • Forgetting to empty Trash: Deleted cache files still occupy space until you empty the Trash.

Tips

  • Clear cache only when you notice issues—doing it too often can slow down apps because they have to rebuild cache files.
  • If you want to free up space, also check About This Mac > Storage > Manage for recommendations like clearing Trash or reducing clutter.
  • For Safari, you can also use Develop menu (enable it in Settings > Advanced) to empty caches quickly, but the standard method above is sufficient.
  • Restart your Mac after clearing caches to ensure all system processes start fresh.

Troubleshooting

  • Cache files won't delete: If you get a “file in use” error, quit the related app and try again. If the issue persists, restart your Mac and delete immediately after startup.
  • Mac runs slower after clearing: This is normal for a short time as apps rebuild caches. Give it a few hours.
  • Websites forget your login: Clearing cache also clears cookies. You'll need to log in again—this is expected.
  • Terminal command not working: Make sure you type the command exactly as shown, including spaces. If you get “command not found,” you may have a typo.
  • Storage space not increasing: Check that you emptied the Trash. Also, some caches are small; the biggest space hogs are usually downloads, photos, and old backups.

Frequently Asked Questions

Is it safe to delete cache files on a MacBook Air?

Yes. Cache files are temporary and will be recreated by apps as needed. Deleting them does not remove personal data.

Will clearing cache delete my passwords?

No. Passwords are stored in Keychain Access, which is separate from cache. However, clearing cookies in browsers may log you out of some websites.

How often should I clear the cache?

Only when you experience problems like slow performance, outdated content, or low disk space. There's no need to do it regularly.

Does clearing cache speed up my MacBook Air?

It can help if the cache is corrupted or bloated, but the effect is usually minor. For significant speed improvements, consider closing unused apps and restarting.

Can I clear cache without using Terminal?

Yes. All cache clearing can be done through Finder and browser settings. Terminal is only needed for DNS cache.

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

User cache (~/Library/Caches) is per-user app data; system cache (/Library/Caches) is shared across all users. Both are safe to clear, but be more cautious with system cache.