code: def clear_samples(self):
          
          # store the iteration that the clear is occuring on
          self._lastclear = self.niterations
          self._itercounter = 0
          # now clear the chain
          self._sampler.reset()
docs: Clears the chain and blobs from memory.