Skip to content

Latest commit

 

History

History
85 lines (40 loc) · 1.08 KB

tough-cookie.memorycookiestore.removecookies_1.md

File metadata and controls

85 lines (40 loc) · 1.08 KB

Home > tough-cookie > MemoryCookieStore > removeCookies

MemoryCookieStore.removeCookies() method

Removes matching cookies from the store. The path parameter is optional and if missing, means all paths in a domain should be removed.

Signature:

removeCookies(domain: string, path: string, callback: ErrorCallback): void;

Parameters

Parameter

Type

Description

domain

string

The cookie domain to match against.

path

string

The cookie path to match against.

callback

ErrorCallback

A function to call when the cookies have been removed or an error occurs.

**Returns:**

void