private static void deleteRecursively(File path) {
    if (!path.exists()) {
      return;
    }

    if (path.isDirectory()){
      for (File f : path.listFiles()){
        deleteRecursively(f);
      }
    }

    path.delete();
  }
Deletes current file or (if a directory) all files recursively.
criteria/elasticsearch/test/org/immutables/criteria/elasticsearch/EmbeddedElasticsearchNode.java