Back to Puppeteer

BrowserContext.deleteMatchingCookies() method

docs/api/puppeteer.browsercontext.deletematchingcookies.md

19.2.2602 B
Original Source

BrowserContext.deleteMatchingCookies() method

Deletes cookies matching the provided filters in this browser context.

Signature

typescript
class BrowserContext {
  deleteMatchingCookies(...filters: DeleteCookiesRequest[]): Promise<void>;
}

Parameters

<table><thead><tr><th>

Parameter

</th><th>

Type

</th><th>

Description

</th></tr></thead> <tbody><tr><td>

filters

</td><td>

DeleteCookiesRequest[]

</td><td>

DeleteCookiesRequest

</td></tr> </tbody></table>

Returns:

Promise<void>