With the newly added PathUtils, the behavior of FileUtils.deleteDirectory has changed. Now nio is used instead of the old File.delete. The problem is, nio does not delete files with read only attribute and failes instead.
The interface of FileUtils was not extended to provide the possibility to use a DeleteOption, so I guess, if someone wants to remove "all" files, then PathUtils should be used. But here comes the next problem, FileUtils.deleteDirectory checks for the existence (in opposite to its javadoc), where PathUtils.deleteDirectory does not. Thats very inconsistent.