Class DeleteFileVisitor

  • All Implemented Interfaces:
    FileVisitor<Path>

    public class DeleteFileVisitor
    extends SimpleFileVisitor<Path>
    Represents a FileVisitor which will recursively delete a directory with all its contents.

    Example usage: Files.walkFileTree(dir, DeleteFileVisitor.INSTANCE);