code: function(fileRef){
      var filename;
      var file;
  
      if (fileRef instanceof File)
      {
        file = fileRef;
        filename = file.filename;
      }
      else
      {
        filename = abspath(this.baseURI, fileRef);
        file = this.map[filename];
  
        if (!file)
        {
          this.flow.warn({
            file: filename,
            message: 'File `' + fileRef + '` not found in map'
          });
          return;
        }
      }
  
      // remove links
      for (var i = file.linkTo.length, linkTo; linkTo = file.linkTo[i]; i--)
        file.unlink(linkTo);
  
      for (var i = file.linkBack.length, linkBack; linkBack = file.linkBack[i]; i--)
        linkBack.unlink(file);
  
      // remove from queue
      var index = this.queue.indexOf(file);
  
      if (index != -1)
        this.queue.splice(index, 1);
  
      // remove from map
      if (filename)
        delete this.map[filename];
    }
docs: Remove a file from manager and break all links between files.
  @param {File|string} fileRef File name or File instance to be removed.