code: def delete(self, name):
      '''
      Delete all the data in a named timeseries.
      '''
      keys = self._client.keys('%s%s:*'%(self._prefix,name))
  
      pipe = self._client.pipeline(transaction=False)
      for key in keys:
        pipe.delete( key )
      pipe.execute()
  
      # Could be not technically the exact number of keys deleted, but is a close
      # enough approximation
      return len(keysf delete(self, name):
      '''
      Delete all the data in a named timeseries.
      '''
      keys = self._client.keys('%s%s:*'%(self._prefix,name))
  
      pipe = self._client.pipeline(transaction=False)
      for key in keys:
        pipe.delete( key )
      pipe.execute()
  
      # Could be not technically the exact number of keys deleted, but is a close
      # enough approximation
      return len(keys)
docs: Delete all the data in a named timeseries.