Skip to content

Lupa API Reference / commands/types / ClearCookiesOptions

Interface: ClearCookiesOptions

Defined in: src/commands/types.ts:191

Options for clearing cookies. Filter which cookies should be deleted from the browser context.

Use-when

Use when calling cookies.clear() with filters to remove specific cookies.

Dont-use-when

Do not use if you want to clear all cookies (call cookies.clear() with no arguments instead).

Properties

domain?

optional domain?: string

Defined in: src/commands/types.ts:200

Filter to clear cookies belonging to this specific domain.


name?

optional name?: string

Defined in: src/commands/types.ts:195

Filter to clear cookies with this specific name.


path?

optional path?: string

Defined in: src/commands/types.ts:205

Filter to clear cookies matching this specific path.