code: public static void deleteDirectory(File directory) throws IOException {
      requireNonNull(directory, DIRECTORY_CAN_NOT_BE_NULL);
      deleteDirectoryImpl(directory.toPath());
    }
docs: Deletes a directory recursively.
  
  @param directory directory to delete
  @throws IOException in case deletion is unsuccessful