docs: private static void deleteRecursively(File file) throws IOException {
          if (file.isDirectory()) {
              deleteDirectoryContents(file);
          }
          if (!file.delete()) {
              throw new IOException("Failed to delete " + file);
          }
      }