Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/levo/src/deps.ts>server.deleteCookie

Server side rendering with The Elm Architecture in Deno
Latest
function server.deleteCookie
import { server } from "https://deno.land/x/levo@v0.0.27/src/deps.ts";
const { deleteCookie } = server;

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