Test Your Website on Real Desktop and Mobile Browsers

Run live and automated cross browser tests on Chrome, Safari, Firefox, and Edge across 3,000+ browser-OS combinations. No setup, no device lab.

How to Clear Cache on Mac

Clear cache on any Mac: Safari, Chrome and Firefox steps, app caches in ~/Library/Caches, and system caches with safe mode. MacBook Air and Pro included.

Summarise with AI

To clear cache on a Mac, start with your browser. In Safari, choose Safari > Settings, click Privacy, click Manage Website Data, then click Remove All. Chrome and Firefox have their own delete options. App caches sit in the ~/Library/Caches folder, and starting up in safe mode clears certain system caches.

  • In Safari, choose Safari > Settings, then click Privacy.
  • Click Manage Website Data.
  • Click Remove All to clear every site, or select sites and click Remove.

These steps come from Apple's Safari User Guide page Clear your cache and cookies in Safari on Mac, checked on December 2, 2026, when the latest release was macOS 27 Golden Gate (27.2.1). They're the same on every Mac, including MacBook Air, MacBook Pro and iMac.

Three Kinds of Cache on a Mac

  • Browser cache: copies of website files that Safari, Chrome and Firefox keep so pages load faster. Clear it when a site shows old content or breaks.
  • App cache: temporary files each app keeps in the Caches folder inside your Library folder. Clear one app's cache when that app misbehaves.
  • System cache: files macOS keeps for itself. Don't delete them by hand; starting up in safe mode clears certain system caches, and macOS creates them again as needed.

To see what's using space, choose Apple menu > System Settings, click General, then click Storage (macOS Ventura 13 or later).

Clear Only Safari's Cache (Keep Cookies)

Remove All signs you out of websites because it deletes cookies too. To clear only the cache, use the Develop menu:

  • Choose Safari > Settings, click Advanced, then select Show features for web developers.
  • Choose Develop > Empty Caches.

Apple's Safari Developer Help says Empty Caches "Empties the network cache and other Safari caches." Your cookies and history stay, so you stay signed in. For the same job on iPhone and iPad, see how to clear the cache in Safari.

Clear Chrome's Cache on Mac

  • In Chrome, click More (the three dots at the top right), then Delete browsing data.
  • Choose a time range, such as Last hour or All time.
  • Select Cached images and files. Uncheck Cookies and other site data if you want to stay signed in.
  • Click Delete data.

Google's Chrome Help page Delete browsing data in Chrome lists these steps and one shortcut: type "Delete browsing data" in the address bar to open the same dialog. More options are in our guide on how to clear browser cache in Chrome.

Clear Firefox's Cache on Mac

  • Click the menu button and select Settings.
  • Select the Privacy and security panel.
  • In the Browsing data section, click Clear browsing data.
  • Next to When:, choose Everything, and make sure only Temporary cached files and pages is checked.
  • Click Delete.

Mozilla gives the same steps in How to clear the Firefox cache. Firefox can also empty its cache every time it closes, a setting covered in our guide on how to clear the cache in Firefox.

Test across 3000+ browser and OS environments with TestMu AI

Clear App Cache on Mac

macOS has no Clear cache button for apps. Each app keeps its temporary files in its own folder inside ~/Library/Caches (the Library folder in your home folder), and you can empty one app's folder when that app misbehaves:

  • Quit the app.
  • In the Finder, choose Go > Go to Folder.
  • Type ~/Library/Caches and press Return.
  • Open the folder for the app, usually named after the app or its developer, and move the files inside it to the Trash.
  • Empty the Trash, then open the app again.
Note

Note: Delete the files inside one app's folder, not the Caches folder itself. Stay in the Library folder inside your home folder (the path that starts with ~), and leave the Library and System folders at the top of your disk alone. Apps rebuild their caches as you use them, so this frees space only for a while.

Clear System Cache with Safe Mode

Apple's guide to freeing up storage space on Mac notes that safe mode "clears certain system caches, which are automatically created again as needed." That lets you clear them without deleting system files by hand.

First, choose Apple menu > About This Mac. An item labeled Chip means your Mac has Apple silicon; Processor means it's Intel-based.

On a Mac with Apple silicon:

  • Choose Apple menu > Shut Down.
  • Press and hold the power button until Loading startup options appears.
  • Select a volume.
  • Press and hold Shift, then click Continue in Safe Mode.

On an Intel-based Mac:

  • Turn on or restart your Mac, then immediately press and hold the Shift key until you see the login window.
  • Log in. You might be asked to log in again.

You'll see Safe Boot in the menu bar. To leave safe mode, restart your Mac normally. Apple's own page, Start up your Mac in safe mode, has the same steps.

Clear DNS Cache on Mac

If a website moved to a new server and your Mac still opens the old one, the DNS cache is the problem, not the browser cache. The Terminal command is in our guide on how to flush the DNS cache.

Conclusion

Start with the browser that shows the problem: Develop > Empty Caches in Safari, Cached images and files in Chrome, Temporary cached files and pages in Firefox. Clear one app's folder in ~/Library/Caches when that app misbehaves, and use safe mode, not the Finder, for system caches.

Developers: when a fix doesn't show up in one browser, a stale cached file is often the cause. Check your pages in Safari, Chrome and Firefox with a clean cache using TestMu AI's cross browser testing.

To run your first test, start free, or
for a full walkthrough of the product.

Was this helpful?

Authors

Sai Krishna

Sai Krishna

Author · 39 posts

Sai Krishna is Director of Engineering at TestMu AI, where he leads agentic AI for quality engineering, building AI agents that autonomously drive mobile and conversational test automation. His current focus is Agent Testing and Model Context Protocol (MCP) support for mobile. He is a core contributor and member of the Appium open-source project and the creator of AppiumTestDistribution and appium-device-farm. With over 14 years of experience including more than 9 years at Thoughtworks as a Principal Consultant, he holds a BSc in Electronics and speaks regularly at TestMu and Appium Conf on Appium, mobile automation, and agentic AI in testing.

Srinivasan Sekar

Srinivasan Sekar

Reviewer

Srinivasan Sekar is Director of Engineering at TestMu AI, where he leads engineering and open-source initiatives behind the Selenium and Appium automation grid and owns TestMu AI's MCP Server. A committer to Appium and a contributor to Selenium, WebdriverIO, Taiko, and AppiumTestDistribution, he brings over 15 years of experience in quality engineering and open-source technologies. He is the author of the Apress book 'The MCP Standard: A Developer's Guide to Building Universal AI Tools with the Model Context Protocol,' a Certified Kubernetes and Cloud Native Associate, and an international conference speaker. Before TestMu AI he spent over eight years at Thoughtworks as a Principal Consultant and Quality Architect. Srinivasan holds a B.Tech in Information Technology from Anna University.

Clear Cache on Mac FAQs

TestMu AI forEnterprise

Get access to solutions built on Enterprise
grade security, privacy, & compliance

  • Advanced access controls
  • Advanced data retention rules
  • Advanced Local Testing
  • Premium Support options
  • Early access to beta features
  • Private Slack Channel
  • Unlimited Manual Accessibility DevTools Tests