God corrected his people Israel, but he did not consume them in his wrath. He disciplined that nation, but he did not cease to work among them or cease to call them his people. Christians and the Church more generally can also receive correction and discipline from God, and he does not make a full end of us either but purges away our sins and restores us.
And we pray:
O Lord, no discipline seems pleasant at the time, but a father who hates his children refuses to discipline them. You are our Loving Heavenly Father, and you discipline and corrrect those you Love. You do not let us wander off down our own paths and get hopelessly lost, but You seek Your sheep and bring them home on Your shoulders in joy.