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

x/abc/vendor/https/deno.land/std/http/cookie.ts>deleteCookie

A better Deno framework to create web application.
Go to Latest
function deleteCookie
import { deleteCookie } from "https://deno.land/x/abc@v1.3.1/vendor/https/deno.land/std/http/cookie.ts";

Set the cookie header properly in the Response to delete it

Parameters

res: { headers?: Headers; }

Server Response

name: string

Name of the cookie to Delete Example:

deleteCookie(res,'foo');