code: def delete(self, path):
          
          mountpoint, chunks = self.get_mountpoint(path)
          apath = self._join_chunks(chunks)
  
          if mountpoint is None:
              try:
                  simfile = self._files.pop(apath)
              except KeyError:
                  return False
              else:
                  self.state.history.add_event('fs_unlink', path=apath, unlink_idx=len(self.unlinks))
                  self.unlinks.append((apath, simfile))
                  return True
          else:
              return mountpoint.delete(chunks)
docs: Remove a file from the filesystem. Returns whether the operation was successful.
  
          This will add a ``fs_unlink`` event with the path of the file and also the index into the `unlinks` list.