Network.deleteCookiesDeletes browser cookies with matching name and url or domain/path/partitionKey pair.
| Name | Type | Description |
|---|---|---|
name | string | Name of the cookies to remove. |
url (optional) | string | If specified, deletes all the cookies with the given name where domain and path match provided URL. |
domain (optional) | string | If specified, deletes only cookies with the exact domain. |
path (optional) | string | If specified, deletes only cookies with the exact path. |
partitionKey (optional) | CookiePartitionKey | If specified, deletes only cookies with the the given name and partitionKey where all partition key attributes match the cookie partition key attribute. |
{
"id": 1,
"method": "Network.deleteCookies",
"params": {
"name": "example-name"
}
}
{
"id": 1,
"result": {}
}
const result = await send('Network.deleteCookies', {"name": "example-name"});
console.log(result);