code: public static void removeCookie(
  		HttpServletRequest request,
  		HttpServletResponse response,
  		String cookieName,
  		boolean secure,
  		boolean contextOnlyPath
  	) {
  		addCookie(request, response, cookieName, "Removed", null, 0, secure, contextOnlyPath);
  	}
docs: Removes a cookie by adding it with maxAge of zero.