code: @Override
      public SshNode deleteFile() throws FileNotFoundException, DeleteException {
          ChannelSftp sftp;
          boolean directory;
  
          try {
              sftp = alloc();
          } catch (JSchException e) {
              throw new DeleteException(this, e);
          }
          try {
              sftp.rm(escape(slashPath));
          } catch (SftpException e) {
              if (e.id == ChannelSftp.SSH_FX_NO_SUCH_FILE) {
                  throw new FileNotFoundException(this);
              }
              try {
                  directory = isDirectory();
              } catch (ExistsException e1) {
                  directory = false;
                  // fall-through - report original exception
              }
              if (directory) {
                  throw new FileNotFoundException(this, e);
              }
              throw new DeleteException(this, e);
          } finally {
              free(sftp);
          }
          return this;
      }
docs: --