code: public void deleteCookie(HttpServletRequest request, HttpServletResponse response, String cookieName, WebAppSecurityConfig webAppSecConfig) {
          ReferrerURLCookieHandler referrerURLCookieHandler = getCookieHandler();
          referrerURLCookieHandler.clearReferrerURLCookie(request, response, cookieName);
  
          Cookie paramCookie = createExpiredCookie(request, cookieName, webAppSecConfig);
          response.addCookie(paramCookie);
      }
docs: Clears the specified cookie and sets its path to the current request URI.