Skip to content

Latest commit

 

History

History
85 lines (40 loc) · 1.09 KB

tough-cookie.store.removecookies_1.md

File metadata and controls

85 lines (40 loc) · 1.09 KB

Home > tough-cookie > Store > removeCookies

Store.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: Nullable<string>, callback: ErrorCallback): void;

Parameters

Parameter

Type

Description

domain

string

The cookie domain to match against.

path

Nullable<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