code: public void removeTag(String tagName) {
      int ids = -1;
      for (DataSet ds : iimFile.getDataSets()) {
        if (ds.getInfo().getName().equals(tagName))
          ids = ds.getInfo().getDataSetNumber();
      }
      if (ids != -1)
        iimFile.remove(ids);
    }
docs: Removes the tag.
  
  @param tagName the tag name