Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/frugal/docs/dep/std/http.ts>deleteCookie

A frugal web framework
Go to Latest
function deleteCookie
import { deleteCookie } from "https://deno.land/x/frugal@0.5.0/docs/dep/std/http.ts";

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