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

x/drash/deps.ts>deleteCookie

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
function deleteCookie
import { deleteCookie } from "https://deno.land/x/drash@v2.7.0/deps.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