code: func DeleteMACCommandQueueItem(p *redis.Pool, devEUI lorawan.EUI64, block MACCommandBlock) error {
  	var buf bytes.Buffer
  	err := gob.NewEncoder(&buf).Encode(block)
  	if err != nil {
  		return errors.Wrap(err, "gob encode error")
  	}
  
  	c := p.Get()
  	defer c.Close()
  
  	key := fmt.Sprintf(macCommandQueueTempl, devEUI)
  	val, err := redis.Int(c.Do("LREM", key, 0, buf.Bytes()))
  	if err != nil {
  		return errors.Wrap(err, "delete mac-command queue item error")
  	}
  
  	if val == 0 {
  		return ErrDoesNotExist
  	}
  
  	log.WithFields(log.Fields{
  		"dev_eui": devEUI,
  		"cid":     block.CID,
  	}).Info("mac-command deleted from queue")
  
  	return nil
  }
docs: // DeleteMACCommandQueueItem deletes the given mac-command from the queue.