Skip to main content
Module

x/drash/tests/deps.ts>Drash.Response#deleteCookie

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

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.