ICookieManagerDeleteCookies Method |
Version 84.4.10
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: 84.4.10.0 (84.4.10.0)
Syntax bool DeleteCookies(
string url = null,
string name = null,
IDeleteCookiesCallback callback = null
)
bool DeleteCookies(
String^ url = nullptr,
String^ name = nullptr,
IDeleteCookiesCallback^ callback = nullptr
)
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:
BooleanReturns false if a non-empty invalid URL is specified or if cookies cannot be accessed; otherwise, true.
See Also