Page.deleteCookieDeletes browser cookie with given name, domain and path.
| Name | Type | Description |
|---|---|---|
cookieName | string | Name of the cookie to remove. |
url | string | URL to match cooke domain and path. |
{
"id": 1,
"method": "Page.deleteCookie",
"params": {
"cookieName": "cookieName-value",
"url": "https://example.com"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Page.deleteCookie', {"cookieName": "cookieName-value", "url": "https://example.com"});
console.log(result);