Delete All Cookies From JavaScript
Malware Detected
This extension has been flagged as potentially malicious.
Extension Delisted
This extension is no longer available in the official store. Delisted on 2025-09-15.
Delete All Cookies From JavaScript
Delete All Cookies From JavaScript
This Chrome extension deletes all cookies (including HTTP only cookies) by either sending a postMessage from any javascript on any page or by clicking the extension action (i.e. clicking the icon).
This chrome extension is particularly useful when you need to delete cookies as part of an automated test.
To delete all cookies using javascript run the following line:
window.postMessage({ type: "CLEAR_COOKIES_EXTENSION_API" }, "*");
To delete cookies for the domain and super-domains of current page using javascript run the following line:
window.postMessage({ type: "CLEAR_COOKIES_DOCUMENT" }, "*");
Note: the CLEAR_COOKIES_DOCUMENT mode does not delete any cookie that has a path value as this is not possible using the document object.
Latest reviews
I think is necessary that the function should call a callback parameter when finished. Thanks
Awesome add-in, it's so handy, love it!
Thank you!
This was really helpful when I was writing a karma test for angular and needed to clear all cookies even those for other domains from my test.