public VNXeCommandResult deleteLunGroup(String lunGroupId,boolean isForceSnapDeletion,boolean isForceVolumeDeletion){
  if (isForceVolumeDeletion) {
    DeleteStorageResourceRequest deleteReq=new DeleteStorageResourceRequest(_khClient);
    return deleteReq.deleteLunGroup(lunGroupId,isForceSnapDeletion);
  }
 else {
    BlockLunRequests lunReq=new BlockLunRequests(_khClient);
    List<VNXeLun> luns=lunReq.getLunsInLunGroup(lunGroupId);
    if (luns != null && !luns.isEmpty()) {
      List<String> lunIds=new ArrayList<String>();
      for (      VNXeLun lun : luns) {
        lunIds.add(lun.getId());
      }
      removeLunsFromLunGroup(lunGroupId,lunIds);
    }
    DeleteStorageResourceRequest deleteReq=new DeleteStorageResourceRequest(_khClient);
    return deleteReq.deleteLunGroup(lunGroupId,isForceSnapDeletion);
  }
}

public VNXeCommandResult deleteLunGroup ( String lunGroupId , boolean isForceSnapDeletion , boolean isForceVolumeDeletion ) { if ( isForceVolumeDeletion ) { DeleteStorageResourceRequest deleteReq = new DeleteStorageResourceRequest ( _khClient ) ; return deleteReq . deleteLunGroup ( lunGroupId , isForceSnapDeletion ) ; } else { BlockLunRequests lunReq = new BlockLunRequests ( _khClient ) ; List < VNXeLun > luns = lunReq . getLunsInLunGroup ( lunGroupId ) ; if ( luns != null && ! luns . isEmpty ( ) ) { List < String > lunIds = new ArrayList < String > ( ) ; for ( VNXeLun lun : luns ) { lunIds . add ( lun . getId ( ) ) ; } removeLunsFromLunGroup ( lunGroupId , lunIds ) ; } DeleteStorageResourceRequest deleteReq = new DeleteStorageResourceRequest ( _khClient ) ; return deleteReq . deleteLunGroup ( lunGroupId , isForceSnapDeletion ) ; } }
delete lun group . if isforcevolumedeletion is true , it would delete all the volumes in the lun group and the lun group . if isforcevolumedeletion is false , it would remove all the volumes from the lun group , then delete the lun group .
