code: def remove(self, source, delfiles=True):
          
          source = self.get_tok(source)
          with self.fs.open(self.path, 'rb') as f:
              data = yaml.safe_load(f.read().decode())
          data['sources'].pop(source, None)
          with self.fs.open(self.path, 'wb') as fo:
              fo.write(yaml.dump(data, default_flow_style=False).encode())
          if delfiles:
              path = posixpath.join(self.pdir, source)
              try:
                  self.fs.rm(path, True)
              except Exception as e:
                  logger.debug("Failed to delete persisted data dir %s" % path)
          self._entries.pop(source, None)
docs: Remove a dataset from the persist store
  
          source : str or DataSource or Lo
              If a str, this is the unique ID of the original source, which is
              the key of the persisted dataset within the store. If a source,
              can be either the original or the persisted source.
          delfiles : bool
              Whether to remove the on-disc artifact