How to delete cookies for a specific site

I need a button or bookmarklet to delete the cookies from the current context. Clearing the cache would be another option.

Specifically, I am logged into too many Google sites and have multiple accounts active. If I log out, it logs everything out.

I want to delete the cookies for a given context (eg. on music.google.com, delete cookies for music.google.com but leave cookies for ever other site like accouts.google.com, thus refreshing the page prompts me for which account I'd like to use.


  1. Click the document icon next to the URL.
  2. Click the "... from this site" link under the Cookies section. Google Chrome - site properties
  3. Highlight the cookie and choose Remove. You can also Block the whole site. Google Chrome - Cookies set by this page

You can do it through Chrome settings. Just go to Preferences -> Options -> Under the Hood -> Content settings -> All cookies and site data...

There you can filter single domain from the list and delete the ones you like.


The bookmarklet from http://ostermiller.org/bookmarklets/cookies.html should work without modification. Just visit the target website first

javascript:void((function(){var%20a,b,c,e,f;f=0;a=document.cookie.split(";%20");for(e=0;e<a.length&&a[e];e++){f++;for(b="."+location.host;b;b=b.replace(/^(?:%5C.|[^%5C.]+)/,"")){for(c=location.pathname;c;c=c.replace(/.$/,"")){document.cookie=(a[e]+";%20domain="+b+";%20path="+c+";%20expires="+new%20Date((new%20Date()).getTime()-1e11).toGMTString());}}}alert("Expired%20"+f+"%20cookies");})())

In Chrome 60+ it's now in the dev tools (F12) - Application tab - Clear Site Data


In Chrome 63, you can open this page and get sites listed separately:

chrome://settings/siteData

Just pick the site you're interested in and you'll see all cookies (or other artifacts like cache, localstorage, etc.). Way easier than navigating various menus ;)

Please note that the above URL is bookmarkable, which means, you can either bookmark the above URL or even bookmark an individual page like this:

chrome://settings/cookies/detail?site=accounts.google.com

After that, you can use whatever method or extension you want to trigger the bookmark (menu, bookmark toolbar, etc.).