Skip to main content
Module

x/abc/deps.ts>cookie.delCookie

A better Deno framework to create web application.
Go to Latest
function cookie.delCookie
import { cookie } from "https://deno.land/x/abc@v1.0.0-rc4/deps.ts";
const { delCookie } = cookie;

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');