void deleteServerInfoFromDatabase(ServerInfoDAO serverInfoDAO){
        if (serverInfoDAO.queryAll().size() == 0){
            HelpPrompt.printNoDataInDataBase();
        } else {
            HelpPrompt.printSpecifyIPOrGroupOrAllForDelete();
            String ask_delete_ip_or_group = getInputContent();
            if (! FunctionKit.checkStringLengthIsZero(ask_delete_ip_or_group)){
                HelpPrompt.printInputError();
            } else {
                String delete_ip_group[] = ask_delete_ip_or_group.split("\\s+");
                if (delete_ip_group.length == 1 && "all".equals(delete_ip_group[0])){
                    HelpPrompt.printAskClearTable();
                    String ask_clear_all_server = getInputContent();
                    if ("y".equals(ask_clear_all_server) || "Y".equals(ask_clear_all_server)){
                        serverInfoDAO.deleteAll();
                    } else {
                        HelpPrompt.printNothingHappen();
                    }
                } else {
                    for (String ip_or_group : delete_ip_group){
                        if (FunctionKit.checkStringIsIP(ip_or_group)){
                            serverInfoDAO.deleteByIP(ip_or_group);
                        } else {
                            serverInfoDAO.deleteByServerGroup(ip_or_group);
                        }
                    }
                }
            }
        }
    }