deleteCookies method
Future<void>
deleteCookies(
- String name, {
- String? url,
- String? domain,
- String? path,
- CookiePartitionKey? partitionKey,
Deletes browser cookies with matching name and url or domain/path/partitionKey pair.
name
Name of the cookies to remove.
url
If specified, deletes all the cookies with the given name where domain and path match
provided URL.
domain
If specified, deletes only cookies with the exact domain.
path
If specified, deletes only cookies with the exact path.
partitionKey
If specified, deletes only cookies with the the given name and partitionKey where
all partition key attributes match the cookie partition key attribute.
Implementation
Future<void> deleteCookies(String name,
{String? url,
String? domain,
String? path,
CookiePartitionKey? partitionKey}) async {
await _client.send('Network.deleteCookies', {
'name': name,
if (url != null) 'url': url,
if (domain != null) 'domain': domain,
if (path != null) 'path': path,
if (partitionKey != null) 'partitionKey': partitionKey,
});
}