Click or drag to resize

ICookieManagerDeleteCookies Method

Version 67.0.0
Deletes all cookies that matches all the provided parameters. If both url and name are empty, all cookies will be deleted. Cookies can alternately be deleted using the Visit*Cookies() methods. This method will be executed on the CEF IO thread in an async fashion, to be notified upon completion implement IDeleteCookiesCallback and pass in as callback

Namespace:  CefSharp
Assembly:  CefSharp (in CefSharp.dll) Version: 67.0.0.0 (67.0.0.0)
Syntax
bool DeleteCookies(
	string url = null,
	string name = null,
	IDeleteCookiesCallback callback = null
)

Parameters

url (Optional)
Type: SystemString
The cookie URL. If an empty string is provided, any URL will be matched.
name (Optional)
Type: SystemString
The name of the cookie. If an empty string is provided, any URL will be matched.
callback (Optional)
Type: CefSharpIDeleteCookiesCallback
If non-NULL it will be executed asnychronously on the CEF IO thread after the cookies have been deleted.

Return Value

Type: Boolean
Returns false if a non-empty invalid URL is specified, or if cookies cannot be accessed; otherwise, true.
See Also