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

x/deno/std/http/mod.ts>delCookie

A modern runtime for JavaScript and TypeScript.
Go to Latest
function delCookie
import { delCookie } from "https://deno.land/x/deno@v0.28.0/std/http/mod.ts";

Set the cookie header properly in the Response to delete it

Parameters

Server Response

name: string

Name of the cookie to Delete Example:

delCookie(res,'foo');