Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
function cookie.deleteCookie
import { cookie } from "https://deno.land/x/pogo@v0.6.0/dependencies.ts";
const { deleteCookie } = cookie;

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