← Back to Page domain

Page.deleteCookie

Deletes browser cookie with given name, domain and path.

Domain: Page deprecated

Parameters

NameTypeDescription
cookieNamestringName of the cookie to remove.
urlstringURL to match cooke domain and path.

Example Request

{
  "id": 1,
  "method": "Page.deleteCookie",
  "params": {
    "cookieName": "cookieName-value",
    "url": "https://example.com"
  }
}

Example Response

{
  "id": 1,
  "result": {}
}

Usage in Node.js

const result = await send('Page.deleteCookie', {"cookieName": "cookieName-value", "url": "https://example.com"});
console.log(result);