deleteCookies

suspend fun deleteCookies(url: String? = null, cookieName: String? = null): Boolean(source)

Delete all cookies that match the specified parameters.

  • If both url and cookieName values are specified all host and domain cookies matching both will be deleted.

  • If only url is specified all host cookies (but not domain cookies) irrespective of path will be deleted.

  • If url is empty all cookies for all hosts and domains will be deleted.

Return

false if a non-empty invalid URL is specified or if cookies cannot be flushed.

Parameters

url

The cookie URL to delete or null.

cookieName

The cookie name to delete or null.