code: public void blankExistingTables() {
          Connection connection = null;
          Statement s = null;
          try {
              connection = SQLUtility.getDefaultConnection(m_serverConfig);
              List<String> existingTables = getExistingTables(connection);
              List<String> fedoraTables = getFedoraTables();
              s = connection.createStatement();
              for (String origTableName: existingTables) {
                  String tableName = origTableName.toUpperCase();
                  if (fedoraTables.contains(tableName)
                          && !tableName.startsWith("RI")) {
                      System.out.println("Cleaning up table: " + origTableName);
                      try {
                          s.executeUpdate("DELETE FROM " + origTableName);
                      } catch (Exception lle) {
                          System.err.println(lle.getMessage());
                          System.err.flush();
                      }
                  }
              }
          } catch (SQLException e) {
              throw new RuntimeException("DB error while blanking existing tables",
                                         e);
          } finally {
              try {
              	if (s != null) {
              		s.close();
              		s = null;
              	}
                  connection.close();
              } catch (Exception e) {
              }
          }
      }
docs: Delete all rows from all Fedora-related tables (except the resource index
  ones) that exist in the database.