code: public FileNode deleteFile() throws DeleteException, FileNotFoundException {
          try {
              checkFile(); // expensive, but I have to avoid deleting empty directories
              Files.delete(path);
          } catch (FileNotFoundException e) {
              throw e;
          } catch (IOException e) {
              throw new DeleteException(this, e);
          }
          return this;
      }
docs: -- delete