private void deleteIntermediateArchivedDir(Table table, Path intermediateArchivedDir) throws HiveException {
    if (HdfsUtils.pathExists(intermediateArchivedDir, context.getConf())) {
      boolean shouldEnableCm = ReplChangeManager.shouldEnableCm(context.getDb().getDatabase(table.getDbName()),
          table.getTTable());
      AlterTableArchiveUtils.deleteDir(intermediateArchivedDir, shouldEnableCm, context.getConf());
    }
  }
Sets the appropriate attributes in the supplied Partition object to mark it as not archived.
Note that the metastore is not touched - a separate call to alter_partition is needed.

@param partition - the partition to modify
ql/src/java/org/apache/hadoop/hive/ql/ddl/table/storage/archive/AlterTableUnarchiveOperation.java