Delete All Cookies From JavaScript - LOGO
  • Delete All Cookies From JavaScript
  • Users : 1,077
  • Last Update : Nov 27, 2013
  • Category : Developer Tools
  • File Size : 88.89KiB
  • Version : 1.1
  • Chrome store
  • Share

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.
Load More
  • Download
  • How to install?
  • Chrome store
  • Share

  • Reviews
    0/500
    Please login before post a review.
    Recent Reviews
    Francisco Gonzalez - avatar
  • Francisco Gonzalez

    Report

  • Nov 19, 2015
  • I think is necessary that the function should call a callback parameter when finished. Thanks
  • Amir Rabbanian - avatar
  • Amir Rabbanian

    Report

  • Nov 28, 2013
  • Awesome add-in, it's so handy, love it!
  •  - avatar
  • Report

  • Nov 28, 2013
  • Thank you!
  • More Reviews
    No more to display.