Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/fsrouter/deps.ts>http.deleteCookie

A file system based router for Deno.
Go to Latest
function http.deleteCookie
import { http } from "https://deno.land/x/fsrouter@2.11.1/deps.ts";
const { deleteCookie } = http;

Set the cookie header with empty value in the headers to delete it

Parameters

headers: Headers

The headers instance to delete the cookie from

name: string

Name of cookie

optional
attributes: { path?: string; domain?: string; }

Additional cookie attributes