class CookieUtils {

    public static boolean deleteCookie(HttpServletResponse res, String cookieName) {<FILL_FUNCTION_BODY>}

    public static boolean addCookie(HttpServletResponse res, String cookieName, String cookieValue) {
        try {
            Cookie cookie = new Cookie(cookieName, cookieValue);
            cookie.setMaxAge(1000);
            cookie.setPath("/");
            res.addCookie(cookie);
            return true;
        } catch (Exception e) {
            log.error(e.toString());
            return false;
        }
    }
}

        try {
            Cookie cookie = new Cookie(cookieName, null);
            cookie.setMaxAge(0);
            cookie.setPath("/");
            res.addCookie(cookie);
            return true;
        } catch (Exception e) {
            log.error(e.toString());
            return false;
        }
    
<no_super_class>