function deleteCookie(res, name) {
  setCookie(res, {
    name: name,
    value: "",
    expires: new Date(0),
  });
}
/**
 *  Set the cookie header properly in the Response to delete it
 * @param res Server Response
 * @param name Name of the cookie to Delete
 * Example:
 *
 *     deleteCookie(res,'foo');
 */
Set the cookie header properly in the Response to delete it
@param res Server Response
@param name Name of the cookie to Delete
Example.


Set the cookie header properly in the Response to delete it @param res Server Response @param name Name of the cookie to Delete Example .
function deleteCookie(res, name) {
  setCookie(res, {
    name: name,
    value: "",
    expires: new Date(0),
  });
}
function deleteCookie ( res , name ) { setCookie ( res , { name : name , value : "" , expires : new Date ( 0 ) , } ) ; }
Set the cookie header properly in the Response to delete it
 @param res Server Response
 @param name Name of the cookie to Delete
 Example:
Set the cookie header properly in the Response to delete it @param res Server Response @param name Name of the cookie to Delete Example :