Original post is here: eklausmeier.goip.de
From time to time I check what I have collected as cookies in my browser and I spot web sites which I probably have never visited directly but somehow set cookies. Instead of deleting them individually I now use sqlite3
to do this.
1cd ~/.config/google-chrome/Default
2sqlite3 Cookies "delete from cookies
3 where host_key not like '%google%'
4 and host_key not like '%facebook%'
5 and host_key not like '%wordpress%'
6 and host_key not like '%tumblr.com'
7 and host_key not like '%github%'
8 and host_key not like '%youtube%'
9 and host_key not like '%wikipedia%'
10 and host_key not like '%twitter%' ;"
This leaves the "good" cookies intact but removes the junk.
Deleting "local storage" is even simpler.
1cd "~/.config/google-chrome/Default/"
2rm -rf "Local Storage"