code: public void purgeHistory(List<HistoryReference> hrefs) {
          if (getView() != null && hrefs.size() > 1) {
              int result = getView().showConfirmDialog(Constant.messages.getString("history.purge.warning"));
              if (result != JOptionPane.YES_OPTION) {
                  return;
              }
              
          }
          synchronized (this) {
              for (HistoryReference href : hrefs) {
                  purgeHistory(href);
              }
          }
      }
docs: Deletes the given history references from the {@link LogPanel History tab} and the session (database), along with the
  corresponding {@link SiteNode}s and {@link Alert}s.
  
  @param hrefs the history entries to delete.
  @see View#getDefaultDeleteKeyStroke()
  @since 2.7.0