WebView.Cookies.ClearForURL
---------------------------

Deletes all cookies for a given website.

| Component | Version | macOS | Windows | Linux | Server | iOS SDK |
|---|---|---|---|---|---|---|
| [WebView](component_WebView.md) | [5.0](newinversion50.md) | ✅ Yes | ❌ No | ❌ No | ❌ No | ❌ No |

MBS( "WebView.Cookies.ClearForURL"; URL ) 

**MBS**( **"WebView.Cookies.ClearForURL";** /\* Deletes all cookies for a given website. \*/  
**$URL**) /\* The target URL of the website to use.e.g. "http://www.mbsplugins.de" \*/ 

### Parameters

| Parameter | Description | Example |
|---|---|---|
| URL | The target URL of the website to use. | "http://www.mbsplugins.de" |

### Result

Returns count or error.

### Description

Deletes all cookies for a given website.  
Returns number of deleted cookies.  
  
For WebKit 1.x, so only for web viewers created in FileMaker 15 or older or web viewers created with [WebView.Create](WebViewCreate.md) function.  
### See also

- [WebView.Create](WebViewCreate.md)

### Blog Entries

- [MBS Filemaker Plugin, version 4.5pr1](https://www.mbsplugins.de/archive/2014-11-24/MBS_Filemaker_Plugin_version_4/monkeybreadsoftware_blog_filemaker)

This function checks for a license.

Created 19th November 2014 , last changed 11st August 2018

  
[WebView.Close](WebViewClose.md) - [WebView.Cookies.Count](WebViewCookiesCount.md)

[HTML Version](WebViewCookiesClearForURL.shtml)