IMHO, path.delete() looks better than Files.delete(path) .
But the developers of the java.nio.file package preferred to implement Path operations through the static methods of the Files class. Why?
That is, the Path interface could be replaced with an abstract class with the methods delete() , isDirectory() , etc., in the same way having a convenient mechanism for implementing platform-dependent entities.