Click or drag to resize

ICookieManagerDeleteCookies Method

Version 86.0.240
Delete all cookies that match the specified parameters. If both url and name 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. Cookies can alternately be deleted using the Visit*Cookies() methods.

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

Parameters

url (Optional)
Type: SystemString
The cookie URL.
name (Optional)
Type: SystemString
The name of the cookie.
callback (Optional)
Type: CefSharpIDeleteCookiesCallback
If non-NULL it will be executed asynchronously on the CEF UI 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