docs: public static void delete(@NonNull final File file) throws IOException {
          Condition.INSTANCE.ensureNotNull(file, "The file may not be null");
          boolean result = file.delete();
  
          if (!result && file.exists()) {
              if (file.isDirectory()) {
                  throw new IOException(
                          "Directory \"" + file + "\" must be empty before being deleted");
              }
  
              throw new IOException("Failed to deleted file \"" + file + "\"");
          }
      }