@RestrictedApi(explanation = "Should only be called in tests", link = "",
      allowedOnPath = ".*/src/test/.*")
  public static void deleteTableDescriptors(FileSystem fs, Path tableDir) throws IOException {
    Path tableInfoDir = new Path(tableDir, TABLEINFO_DIR);
    deleteTableDescriptorFiles(fs, tableInfoDir, Integer.MAX_VALUE);
  }
Returns the latest table descriptor for the table located at the given directory directly from
the file system if it exists.
hbase-server/src/main/java/org/apache/hadoop/hbase/util/FSTableDescriptors.java