Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

share|improve this question
    
Depending on how Google account logins work, that might not even be possible at all. –  slhck Dec 9 '11 at 22:43
    
Yeah, I'm not fond of web development but I created wrote a bit of JavaScript to do it, but it didn't delete the header only cookies. I thought maybe extensions might have more control –  codeReign Dec 10 '11 at 19:46

4 Answers 4

up vote 2 down vote accepted

I found a good and easy to use extension for the same. Remove cookies for site.

Its description:

DESCRIPTION:
Click the broken cookie and all cookies for the current site will be deleted.

I built this extension because it was simply missing. As a developer I need a quick way to clean all cookies for the current site.

share|improve this answer

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.

share|improve this answer
1  
This option is now unavailable. –  Redsandro Apr 2 '13 at 20:06
5  
It's still available. After entering a domain name to filter, click the button, misleadingly named "Remove All". In reality it'll delete only filtered items. –  Denis Malinovsky Jun 18 '13 at 2:48

There is a much faster way which has now been added to Chrome.

  1. Click the document icon next to the URL.
  2. On the Permissions Tab, Click on "Show cookies and site data".
  3. Highlight the cookie and choose "Remove" or "Block"

enter image description here

share|improve this answer
    
Made my SU account just to +1 this - thanks! –  Adam Wenger Nov 15 at 15:45
    
fantastic!! great answer –  Nobita Nov 28 at 16:31

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");})())
share|improve this answer
    
Per the documentation, it only clears cookes for THAT PAGE: "Clears all cookies for the current page." –  Clay Nichols Dec 28 '12 at 20:06

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.