code: func (b *FastLogStore) DeleteRange(min, max uint64) error {
  	if b.log != nil {
  		start := time.Now()
  		defer func() {
  			fmt.Fprintf(b.log, "%s [VERB] store: Deleting range %d-%d completed: %s\n",
  				time.Now().Format("2006/01/02 15:04:05"), min, max, time.Now().Sub(start).String())
  		}()
  	}
  	b.mu.Lock()
  	defer b.mu.Unlock()
  	if b.closed {
  		return ErrClosed
  	}
  	if b.persist {
  		var num = make([]byte, 8)
  		b.buf = b.buf[:0]
  		b.buf = append(b.buf, cmdDeleteRange)
  		binary.LittleEndian.PutUint64(num, min)
  		b.buf = append(b.buf, num...)
  		binary.LittleEndian.PutUint64(num, max)
  		b.buf = append(b.buf, num...)
  		if err := b.writeBuf(); err != nil {
  			return err
  		}
  	}
  	for i := min; i <= max; i++ {
  		delete(b.lvm, i)
  	}
  	b.limits = false
  	return nil
  }
docs: // DeleteRange is used to delete logs within a given range inclusively.