deleteCookies

suspend fun deleteCookies(args: Network.DeleteCookiesParameter, mode: CommandMode = CommandMode.DEFAULT)

Deletes browser cookies with matching name and url or domain/path/partitionKey pair.


suspend fun deleteCookies(name: String, url: String? = null, domain: String? = null, path: String? = null, partitionKey: Network.CookiePartitionKey? = null)

Deletes browser cookies with matching name and url or domain/path/partitionKey pair.

Parameters

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.