Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Learn how to delete Safari Cookies permanently!

I posted this way because there are so many questions on deleted cookies reappearing. I had the following cookie reappear (eBay) after deleting it every which way possible: manually, deleting all cookies, deleting cache, etc.....

I have Mac OS X El Capitan 10.11.6 using Safari 10.0.1


I did the following and it worked. 🙂

On the Finder menu use "Go" then "Go to Folder..." the default folder is "~/Library" hit "Go"

Go to the "Safari" folder then in the "Databases" sub-folder.

There you should find another sub-folder "__IndexedDB" inside of that you will find subfolders of :


All the cookies that keep reappearing 😮


Just delete the folder of the cookie you no longer want to reappear and Boom! Pow! they're gone.


So the path is:

~/Library/Safari/Databases/__IndexedDB/


Hope this helps all the users and Apple on fixing this bug.

Mac Pro, OS X El Capitan (10.11.6), Safari 10.0.1

Posted on Nov 27, 2016 7:17 AM

Reply
Question marked as Best reply

Posted on Apr 5, 2017 1:25 AM

I found the folder, and the databases, and I deleted them. They still appear in the list in Safari/Preferences/Privacy/Manage Website Data. Even when I delete them, they reappear! Is there any other way to get rid of them? I do not have their relevant websites open and running whilst trying to delete them.

17 replies
Question marked as Best reply

Apr 5, 2017 1:25 AM in response to noxs4u

I found the folder, and the databases, and I deleted them. They still appear in the list in Safari/Preferences/Privacy/Manage Website Data. Even when I delete them, they reappear! Is there any other way to get rid of them? I do not have their relevant websites open and running whilst trying to delete them.

Jun 4, 2017 10:42 AM in response to noxs4u

This didn't work. I found the folder and all those pesky files here: ~/Library/Safari/Databases/__IndexedDB/ and actually some where located in here: ~/Library/Safari/Databases/

However, when I check in Preferences/Privacy and open the "Manage" button these cookies/tracking files are still here. I tried to delete several times and they reappear. Could those tracking files be located somewhere else?

And yes, I re-booted the computer before checking to ensure the memory was fresh.

Jun 5, 2017 6:45 AM in response to Biznez67

As the 2nd article points out, they are capable of regenerating after deletion with files that go to many parts of the system.



Safari/Browsers – can’t delete cookies


Evercookie


The myth of the dangerous cookie


Quit Safari.


In Finder go to Go menu and then Go to Folder.


Copy and paste this ~/Library/Safari/Databases.


Delete the contents of the folder.


Launch Safari again and check if all is ok.


If that doesn’t work, copy and paste this ~/Library/Safari/LocalStorage.


Delete the contents of the folder.


Then go to Safari/History and delete any entries for the related websites.


Test.

Jun 5, 2017 4:58 PM in response to Eric Root

Eric,

Tried both. Neither worked.

~/Library/Safari/Databases (still empty)

~/Library/Safari/LocalStorage (only two recent files)

Closed Safari and re-opened. Went back to preferences, Manage, still 27 files that I cannot permanently delete. I remove them in preferences and they reappear. And no files in either directory that you list. This is frustrating.

Jun 30, 2017 4:24 PM in response to noxs4u

I am working with Sierra 10.12.5


nordgers-MacBook-Pro:~ nordgerwald$ ls -l Library/Safari/Databases/

total 0

drwxr-xr-x@ 2 nordgerwald staff 68 Jun 30 10:57 ___IndexedDB


nordgers-MacBook-Pro:~ nordgerwald$ ls -l Library/Safari/Databases/___IndexDB

ls: Library/Safari/Databases/___IndexDB: No such file or directory


nordgers-MacBook-Pro:~ nordgerwald$ cd Library/Safari/Databases/

nordgers-MacBook-Pro:Databases nordgerwald$ ls -l

total 0

drwxr-xr-x@ 2 nordgerwald staff 68 Jun 30 10:57 ___IndexedDB


nordgers-MacBook-Pro:Databases nordgerwald$ cd ___IndexDB

-bash: cd: ___IndexDB: No such file or directory


nordgers-MacBook-Pro:Databases nordgerwald$ cd '___IndexDB'

-bash: cd: ___IndexDB: No such file or directory


nordgers-MacBook-Pro:Databases nordgerwald$ cd 'IndexDB'

-bash: cd: IndexDB: No such file or directory


nordgers-MacBook-Pro:Databases nordgerwald$ cd '_IndexDB'

-bash: cd: _IndexDB: No such file or directory


nordgers-MacBook-Pro:Databases nordgerwald$ cd '__IndexDB'

-bash: cd: __IndexDB: No such file or directory

Jul 3, 2017 8:55 PM in response to Eric Root

This didn't work for us either.

We found various dodgy cookies in ~/Library/Safari/Databases and deleted them.

Couldn't find ~/Library/Safari/LocalStorage anywhere so we were unable to delete anything from here.

We cleared History etc but when we checked back in to Preferences/Privacy/Manage they were all still in there. Its driving me bonkers!

Its the same 32 showing up time and again! 😠

Jul 22, 2017 8:58 AM in response to noxs4u

I had the same problem and I tried deleting the folders above and nothing worked... until I unchecked Enable Javascript. I don't know whether it's Evercookie or some other script that evidently recreates the cookies every time I delete them.

The sad news is that they return as soon as I enable Javascript again and many sites simply demand that it is enabled or are severily crippled or don't display at all.

Oct 3, 2017 8:49 AM in response to noxs4u

I tried this. Found all of the persistent, unwanted cookies, and deleted them all. I then shut down and restarted my computer. Unfortunately, all of the cookies where still present, in 'Manage Website Data', plus an extra one, from apple.com


Eventually, the only way I could clear all of the persistent cookies, was to delete Datatbases.bd, which I left in the Trash file, as a backup strategy, presuming that the file would be inert, whilst in Trash.


Today, everything was working fine, including visiting Barclaycard, and my Log In details still loaded and worked. I also looked in the ~/Library/Safari/LocalStorage folder, and found todays Barclaycard entry, which was acceptable. But I also found StorageTracker.db Abobe Acrobat DC.app Document, dated today, even though I hadn't used Adobe Acrobat. I have read that Adobe Acrobat is used as a method of entry, by hackers.


It's worth looking in all of these folders, to see what is being recorded, and delete anything that you don't want. I hope that this info will help resolve this problem, for others. I would like to thank all those, who have also contributed to resolving this annoying problem, at least, for me.

Learn how to delete Safari Cookies permanently!

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.