private void deleteTableData(Path tablePath, boolean ifPurge, boolean shouldEnableCm) {
    if (tablePath != null) {
      deleteDataExcludeCmroot(tablePath, ifPurge, shouldEnableCm);
    }
  }
Deletes the data in a table's location, if it fails logs an error

@param tablePath
@param ifPurge completely purge the table (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