code: func DeletePendingMACCommand(p *redis.Pool, devEUI lorawan.EUI64, cid lorawan.CID) error {
  	c := p.Get()
  	defer c.Close()
  
  	key := fmt.Sprintf(macCommandPendingTempl, devEUI, cid)
  	val, err := redis.Int(c.Do("DEL", key))
  	if err != nil {
  		return errors.Wrap(err, "delete pending mac-command error")
  	}
  	if val == 0 {
  		return ErrDoesNotExist
  	}
  
  	log.WithFields(log.Fields{
  		"dev_eui": devEUI,
  		"cid":     cid,
  	}).Info("pending mac-command deleted")
  
  	return nil
  }
docs: // DeletePendingMACCommand removes the pending mac-command for the given CID.