removeCookie

fun removeCookie(uri: String, cookie: Cookie)

Removes cookie from uri in the desktop WebView cookie store.

uri is used to validate and normalize the cookie origin before delegating to WebView2, WebKitGTK, or WebKit. Removal targets the cookie identified by the structured cookie's name, domain, and path; the value is not used as the identity.

Platform notes:

PlatformNative operationKey behavior
WindowsWebView2 DeleteCookieDeletes the cookie whose name and domain/path pair match.
LinuxWebKitGTK webkit_cookie_manager_delete_cookieDeletes the matching SoupCookie from WebKitGTK storage.
macOSWKHTTPCookieStore.deleteCookieDeletes the matching HTTPCookie asynchronously, bridged here as a blocking call.