code: public void removeVariantStudyMetadata(String studyId) {
          // Sanity check
          if (StringUtils.isEmpty(studyId)) {
              logger.error("Variant study metadata ID {} is null or empty.", studyId);
              return;
          }
          VariantStudyMetadata variantStudyMetadata = getVariantStudyMetadata(studyId);
          if (variantStudyMetadata == null) {
              logger.error("Dataset not found. Check your study ID: '{}'", studyId);
              return;
          }
          for (int i = 0; i < variantMetadata.getStudies().size(); i++) {
              if (studyId.equals(variantMetadata.getStudies().get(i).getId())) {
                  variantMetadata.getStudies().remove(i);
                  return;
              }
          }
      }
docs: Remove a variant study metadata (from study ID).
  
  @param studyId     Study ID