Zimt

How to Remove Cookies from Safari on Mac and iPhone

· 5 min read · Cookies and Bars

In this article
  1. Clearing Cookies on macOS Safari
  2. Clearing Cookies on iOS Safari
  3. Removing Specific Site Cookies on macOS
  4. Automating Cookie Deletion with Private Browsing
  5. How to Verify Cookies Are Gone
  6. Common Issues and Fixes
  7. Impact on Saved Logins and Sessions
  8. Comparing Cookie Deletion Methods

Open Safari’s Preferences and delete the stored cookies. This removes every cookie Safari has saved on your Mac, freeing up privacy and storage space. After the removal, Safari will no longer send those site identifiers on subsequent requests.

  1. Launch Safari on your Mac.
  2. From the menu bar, choose Safari > Preferences (or press ⌘+,).
  3. Select the Privacy tab.
  4. Click Manage Website Data… to open the data list.
  5. In the dialog, click Remove All, confirm with Remove Now, and wait roughly 5 seconds for the process to finish.

Clearing Cookies on macOS Safari

Safari stores cookies in a SQLite database located in the Library folder; deleting them via the UI also clears the database entries, preventing orphaned files from consuming disk space. The Privacy tab shows the total size of website data, which typically ranges from 10 MB to 150 MB depending on browsing habits. If the size exceeds 100 MB, consider removing data in batches of 20 sites to avoid a temporary UI freeze lasting up to 30 seconds.

After you click Remove All, Safari restarts the cookie store automatically; you do not need to quit the application. To verify the action, reopen Manage Website Data… – the list should be empty and the total data size should read 0 KB.

Clearing Cookies on iOS Safari

On an iPhone or iPad, the cookie removal path lives in the Settings app because Safari’s in‑app menus are limited. Open Settings > Safari > Advanced > Website Data, then tap Remove All Website Data. The system displays a confirmation alert; tap Remove Now and wait about 3 seconds for the purge to complete.

iOS stores cookies per‑profile, so if you use multiple Apple IDs on the same device, each profile retains its own cookie set. To clear a single site’s cookies, scroll the list, swipe left on the site entry, and tap Delete. This action removes roughly 1 KB to 5 KB of data per site, depending on the number of stored session tokens.

Removing Specific Site Cookies on macOS

If you need to delete cookies for a single domain rather than the entire store, use the search field in Manage Website Data…. Type the domain name (e.g., "example.com") and press Return; Safari filters the list to matching entries. Select the highlighted rows and click Remove. This operation typically takes 1 second per domain, regardless of data size.

For power users, the Terminal command sqlite3 ~/Library/Cookies/Cookies.binarycookies "DELETE FROM moz_cookies WHERE host LIKE '%example.com%'" can purge entries directly, but it requires disabling Safari temporarily and re‑enabling it after the command. Always back up the Cookies.binarycookies file before running manual queries.

Private Browsing automatically discards cookies at the end of each session, eliminating the need for manual cleanup. Activate it by selecting File > New Private Window or pressing ⇧⌘N. While in private mode, Safari stores cookies in memory only; the memory footprint rarely exceeds 2 MB for typical browsing sessions lasting under 30 minutes.

To make private mode the default, go to Safari > Preferences > General and set New windows open with to Private Window. This setting applies to both macOS and iOS (via Settings > Safari > Private Browsing). Remember that private mode also blocks history recording, so you lose the ability to revisit previously visited pages via the Back button.

How to Verify Cookies Are Gone

After any deletion, open Develop > Show Web Inspector (enable the Develop menu in Preferences > Advanced if hidden). In the inspector, select the Storage tab, then expand Cookies. An empty list confirms successful removal. If any entries remain, note their domain and repeat the targeted removal steps.

Another quick check: visit a site you previously logged into, such as a news portal, and observe whether it prompts for credentials again. A re‑login request indicates that the associated session cookie was cleared. This behavioral test takes about 15 seconds per site.

Common Issues and Fixes

Some users report that cookies reappear immediately after deletion. This usually happens because Safari syncs data via iCloud; the cloud copy overwrites the local purge within 10 seconds. To stop this, open System Settings > Apple ID > iCloud, deselect Safari, perform the cookie removal, then re‑enable the sync if desired.

Another frequent problem is a frozen Manage Website Data… window. The freeze often stems from a corrupted SQLite file. Resolve it by quitting Safari, moving the file ~/Library/Cookies/Cookies.binarycookies to a backup folder, and relaunching Safari, which will generate a fresh, empty database.

Impact on Saved Logins and Sessions

Cookies store authentication tokens for sites like email, banking, and social media. Deleting them forces a fresh login, which can be useful for security but may interrupt workflows. Before clearing all cookies, export passwords from the iCloud Keychain or a password manager to avoid being locked out of critical accounts.

For sites that rely on persistent login cookies (e.g., streaming services), expect a re‑authentication delay of 2 seconds to 5 seconds after deletion. This delay is the time required for the server to issue a new token after you re‑enter credentials.

Method Scope Time Required Effect on Saved Logins
Clear All Cookies (Preferences) All domains on device ~5 seconds (macOS) / ~3 seconds (iOS) All saved sessions removed
Clear Selected Cookies (Search & Delete) One or multiple chosen domains 1 second per domain Only affected sites lose sessions
Private Browsing Only the current session Zero manual time; automatic at close No persistent sessions stored

Choosing the right method depends on your privacy priority and workflow tolerance. If you need a clean slate every day, enable Private Browsing. If you only want to erase trackers from a few advertising networks, use the selective removal workflow.

Remember to repeat the verification steps after each method to ensure no residual data remains. Consistent checks keep your browsing environment lean and protect against inadvertent data leakage.