tough-cookie.memorycookiestore.removecookie.md

July 9, 2025 ยท View on GitHub

Home > tough-cookie > MemoryCookieStore > removeCookie

MemoryCookieStore.removeCookie() method

Remove a cookie from the store (see notes on findCookie about the uniqueness constraint).

Signature:

removeCookie(domain: string, path: string, key: string): Promise<void>;

Parameters

Parameter

Type

Description

domain

string

The cookie domain to match against.

path

string

The cookie path to match against.

key

string

The cookie name to match against.

Returns:

Promise<void>