Skip to main content
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