@Override public DriverTask deleteConsistencyGroupSnapshot(List<VolumeSnapshot> snapshots){
  LOG.info("Deleting consistency group snapshot");
  DellSCDriverTask task=new DellSCDriverTask("deleteConsistencyGroupSnapshot");
  StringBuilder errBuffer=new StringBuilder();
  int deletedCount=0;
  for (  VolumeSnapshot snapshot : snapshots) {
    DriverTask subTask=snapshotHelper.deleteVolumeSnapshot(snapshot);
    if (subTask.getStatus() == TaskStatus.FAILED) {
      errBuffer.append(String.format("%s%n",subTask.getMessage()));
    }
 else {
      deletedCount++;
    }
  }
  task.setMessage(errBuffer.toString());
  if (deletedCount == snapshots.size()) {
    task.setStatus(TaskStatus.READY);
  }
 else   if (deletedCount == 0) {
    task.setStatus(TaskStatus.FAILED);
  }
 else {
    task.setStatus(TaskStatus.PARTIALLY_FAILED);
  }
  return task;
}

@ Override public DriverTask deleteConsistencyGroupSnapshot ( List < VolumeSnapshot > snapshots ) { LOG . info ( "Deleting consistency group snapshot" ) ; DellSCDriverTask task = new DellSCDriverTask ( "deleteConsistencyGroupSnapshot" ) ; StringBuilder errBuffer = new StringBuilder ( ) ; int deletedCount = 0 ; for ( VolumeSnapshot snapshot : snapshots ) { DriverTask subTask = snapshotHelper . deleteVolumeSnapshot ( snapshot ) ; if ( subTask . getStatus ( ) == TaskStatus . FAILED ) { errBuffer . append ( String . format ( "%s%n" , subTask . getMessage ( ) ) ) ; } else { deletedCount ++ ; } } task . setMessage ( errBuffer . toString ( ) ) ; if ( deletedCount == snapshots . size ( ) ) { task . setStatus ( TaskStatus . READY ) ; } else if ( deletedCount == 0 ) { task . setStatus ( TaskStatus . FAILED ) ; } else { task . setStatus ( TaskStatus . PARTIALLY_FAILED ) ; } return task ; }
delete a consistency group snapshot set .
