private void deletePartitionData(List<Path> partPaths, boolean ifPurge, boolean shouldEnableCm) {
    if (partPaths != null && !partPaths.isEmpty()) {
      for (Path partPath : partPaths) {
        deleteDataExcludeCmroot(partPath, ifPurge, shouldEnableCm);
      }
    }
  }
Give a list of partitions' locations, tries to delete each one
and for each that fails logs an error.

@param partPaths
@param ifPurge completely purge the partition (skipping trash) while
               removing data from warehouse
@param shouldEnableCm If cm should be enabled
standalone-metastore/metastore-server/src/main/java/org/apache/hadoop/hive/metastore/HMSHandler.java