public static boolean removeMobFiles(Configuration conf, FileSystem fs, TableName tableName,
    Path tableDir, byte[] family, Collection<HStoreFile> storeFiles) {
    try {
      HFileArchiver.archiveStoreFiles(conf, fs, getMobRegionInfo(tableName), tableDir, family,
        storeFiles);
      LOG.info("Table {} {} expired mob files are deleted", tableName, storeFiles.size());
      return true;
    } catch (IOException e) {
      LOG.error("Failed to delete the mob files, table {}", tableName, e);
    }
    return false;
  }
Archives the mob files.
@param conf       The current configuration.
@param fs         The current file system.
@param tableName  The table name.
@param tableDir   The table directory.
@param family     The name of the column family.
@param storeFiles The files to be deleted.
hbase-server/src/main/java/org/apache/hadoop/hbase/mob/MobUtils.java