deleteCookies method
Deletes browser cookies with matching name and url or domain/path 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.
Implementation
Future<void> deleteCookies(String name,
{String? url, String? domain, String? path}) async {
await _client.send('Network.deleteCookies', {
'name': name,
if (url != null) 'url': url,
if (domain != null) 'domain': domain,
if (path != null) 'path': path,
});
}