queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_metric_prop", "trial_id", trial_id)); queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_metric", "trial_id", trial_id));
  public static void deleteExperiment(String experiment_id, String experiment_name) {    if (experiment_id == null)      return;    boolean doIt = true;        // HACK: Avoid deleting base experiments    if (! experiment_id.startsWith("EXPT-"))      doIt = false;        if (doIt == false) {      int response = 	JOptionPane.showConfirmDialog(null,				      "You seem to be trying to delete a base experiment -- do you REALLY want to do this?",				      "Confirm Delete",				      JOptionPane.YES_NO_OPTION);            if (response == JOptionPane.YES_OPTION) {	doIt = true;      }    }        if (!doIt)      return;        String expt_id = DBUtils.sqlQuote(experiment_id);    String trial_id = DBUtils.sqlQuote(getTrialId(experiment_id));    String society_id = DBUtils.sqlQuote("society|" + experiment_name);    ArrayList queries = new ArrayList();    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_assembly", "expt_id", expt_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_config_assembly", "expt_id", expt_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_thread", "expt_id", expt_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_org_mult", "expt_id", expt_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_metric_prop", "trial_id", trial_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_metric", "trial_id", trial_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial_mod_recipe", "trial_id", trial_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_trial", "expt_id", expt_id));    queries.add(DBUtils.makeDeleteQuery(asbPrefix+"expt_experiment", "expt_id", expt_id));    DBUtils.executeQueries(queries, QUERY_FILE);    clearUnusedCMTassemblies();  }