Module

x/drash/mod.ts>Response#deleteCookie

A microframework for Deno's HTTP server with zero third-party dependencies
Go to Latest
method Response.prototype.deleteCookie
import { Response } from "https://dotland.deno.dev/x/drash@v2.7.0/mod.ts";

Delete a cookie for the response.

Parameters

name: string
  • The name of the cookie.
optional
attributes: { domain: string; path?: string; }
  • Path and domain, can be used to pass the exact same attributes that were used to set the cookie.