# deleteCookies

Delete cookies visible to the current page. By providing a cookie name it just removes the single cookie or more when multiple names are passed.

## Usage[​](#usage "Direct link to Usage")

```
await browser.deleteCookies(filter)
```

## Parameters[​](#parameters "Direct link to Parameters")

| Name     | Type                    | Details                                                                                     |
| -------- | ----------------------- | ------------------------------------------------------------------------------------------- |
| `filter` | `StorageCookieFilter[]` | Use the filter property to identify and delete specific cookies based on matching criteria. |

## Examples[​](#examples "Direct link to Examples")

example.js

```
loading...
```

[View on GitHub](https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/deleteCookies/example.js#L9-L29)

example.js

```
loading...
```

[View on GitHub](https://github.com/webdriverio/example-recipes/blob/e8b147e88e7a38351b0918b4f7efbd9ae292201d/deleteCookies/example.js#L31-L35)
