How to Clear Website Data for a Specific Site in Safari on Mac

When a specific website fails to load properly, encounters infinite redirect loops, displays corrupted visual elements, or refuses to log you in, the standard troubleshooting advice is to clear your browser cache and cookies. However, using Safari’s general “Clear History” command deletes your cookies across every website simultaneously, logging you out of your webmail, project management dashboards, and streaming services.

Fortunately, Safari on macOS provides a granular privacy management tool that allows you to inspect, search, and delete stored website data—including HTTP cookies, HTML5 local storage, database caches, and service workers—for an isolated domain while leaving the rest of your browsing sessions intact.

Step-by-Step: Removing Data for an Individual Website

You can target and purge data for any single domain through Safari’s Privacy settings:

  1. Open Safari on your Mac.
  2. Click Safari in the top menu bar and select Settings (or press Command + ,). On macOS Monterey or earlier, this option is named Preferences.
  3. Click the Privacy tab at the top of the settings window.
  4. Click the Manage Website Data button.
  5. Safari will compile and display a comprehensive list of all domains that have stored local data, cookies, or cache on your Mac.
  6. In the search box located in the top-right corner of the sheet, type the domain name of the problematic website (for example, type github.com or example.com).
  7. Click on the specific domain entry in the filtered list to highlight it.
  8. Click the Remove button at the bottom of the window. (Caution: Do NOT click “Remove All”, as that will delete data for every website on your Mac.)
  9. Click Done, then close the Settings window.

Once removed, return to the problematic webpage and perform a hard refresh by pressing Command + R. Safari will download fresh assets from the server, resolving authentication conflicts and rendering issues immediately.

Advanced: Clear Storage via Safari Develop Menu (Web Inspector)

If you are actively developing a website or want to inspect specific cookies and session tokens before deleting them, use Safari’s Web Inspector:

1. Enable the Develop Menu

  1. Go to Safari Settings (Command + ,) > Advanced.
  2. Tick the checkbox at the bottom labelled Show features for web developers (or Show Develop menu in menu bar).

2. Purge Storage Directly from the Page

  1. Navigate to the webpage you are troubleshooting.
  2. Right-click anywhere on the page and select Inspect Element.
  3. Click the Storage tab in the Web Inspector toolbar.
  4. In the left sidebar, expand Cookies, Local Storage, or Session Storage.
  5. Right-click any individual cookie or storage key and select Delete, or right-click the parent storage container and choose Clear All to wipe that site’s runtime data instantly without leaving the tab.

Why Site-Specific Data Clearing Is Superior to General Cache Deletion

Clearing data domain-by-domain offers significant practical advantages:

  • Preserves Active Logins: You remain logged into essential accounts (Google, Slack, GitHub, banking portals) without having to perform two-factor authentication across your entire workflow.
  • Maintains Site Preferences: Your dark mode choices, language preferences, and custom volume levels on other platforms are preserved.
  • Pinpoints Root Causes: If clearing a single domain fixes the issue, you confirm that corrupted local storage or an expired session token was the problem, rather than a system-wide network failure.

Using Safari’s Manage Website Data feature ensures fast, targeted troubleshooting while maintaining your everyday browsing continuity on macOS.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.