docs: public static void deleteDirectory(File root) {
          File[] currList;
          Stack<File> stack = new Stack<>();
          stack.push(root);
          while (!stack.isEmpty()) {
              if (stack.lastElement().isDirectory()) {
                  currList = stack.lastElement().listFiles();
                  if (currList != null && currList.length > 0) {
                      for (File curr : currList) {
                          stack.push(curr);
                      }
                  } else {
                      stack.pop().delete();
                  }
              } else {
                  stack.pop().delete();
              }
          }
      }