Function deleteCookie
- delete
Cookie (headers, name, attributes?): void Parameters
- headers: Headers
The headers instance to delete the cookie from
- name: string
Name of cookie
Optionalattributes: Pick<Cookie,
| "path"
| "domain"
| "secure"
| "httpOnly"
| "partitioned">Additional cookie attributes
Returns void
- headers: Headers
Set the cookie header with empty value in the headers to delete it.
The attributes (
path,domain,secure,httpOnly,partitioned) need to match the values when the cookie was set.