Skip to main content
Latest
function deleteCookie
import { deleteCookie } from "https://deno.land/x/cookies@1.0.0/deps.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');