Jeremiah46:28

אַתָּה אַל־תִּירָא עַבְדִּי יַעֲקֹב נְאֻם־יְהוָה כִּי אִתְּךָ אָנִי כִּי אֶעֱשֶׂה כָלָה בְּכָל־הַגּוֹיִם אֲשֶׁר הִדַּחְתִּיךָ שָׁמָּה וְאֹתְךָ לֹא־אֶעֱשֶׂה כָלָה וְיִסַּרְתִּיךָ לַמִּשְׁפָּט וְנַקֵּה לֹא אֲנַקֶּךָּ׃

You, fear not, O Yaakov My servant, says the Eternal, for I am with you. For I will make a full end of all the nations to which I have driven you, but of you I will not make a full end. I will chasten you in just measure, and I will by no means leave you unpunished."

Jeremiah 46:28

אַתָּה אַל־תִּירָא עַבְדִּי

Yirmeyahu / Jeremiah 46:28 · Pshat

Jeremiah 46:28

אַתָּה אַל־תִּירָא עַבְדִּי יַעֲקֹב נְאֻם־יְהוָה כִּי אִתְּךָ אָנִי כִּי אֶעֱשֶׂה כָלָה בְּכָל־הַגּוֹיִם אֲשֶׁר הִדַּחְתִּיךָ שָׁמָּה וְאֹתְךָ לֹא־אֶעֱשֶׂה כָלָה וְיִסַּרְתִּיךָ לַמִּשְׁפָּט וְנַקֵּה לֹא אֲנַקֶּךָּ׃

You, fear not, O Yaakov My servant, says the Eternal, for I am with you. For I will make a full end of all the nations to which I have driven you, but of you I will not make a full end. I will chasten you in just measure, and I will by no means leave you unpunished."

Pshat פְּשָׁט

Punishment without an end

A strict teacher may punish, but will not expel you from school. Punishment is not yet the end. The prophet Yirmeyahu (Jeremiah) tells Israel just this, and the commentators explain how to read the last words of the verse.

Rashi: "in just measure" means by judgement, little by little, sparingly. And "I will by no means leave you unpunished (וְנַקֵּה)" Rashi reads as "I will not wipe you out entirely", and so Targum Jonathan translates. Metzudat David: even if I make an end of the nations, of you I will not, though you will be in their land. I will chasten you as is fitting, so that you hear correction, but I will not wipe you out of the world.

How Rashi and Metzudat David explain it

Rashi In just measure (לַמִּשְׁפָּט)

By judgement, sparingly, little by little.

Rashi And unpunished (וְנַקֵּה)

A word of sweeping away and destroying. And so Jonathan translated it: with a word of utter destruction.

Metzudat David For I will make a full end

That is: even if I make a full end, and so on, of you I will not make a full end, though you will be in their land.

Metzudat David I will chasten you in just measure

I will chasten you by judgement, as is fitting, to open the ear to correction. And I will not clear you out of the world so that the world is left clear of you, that is, I will not cut you off from the world.

Takeaway

The word וְנַקֵּה can be read two ways. From "clean, innocent" (נָקִי): "I will not leave you unpunished", as in the plain translation of the verse. From "to clear a place, sweep away": "I will not wipe you out entirely", as Rashi and Metzudat David read.
Targum Jonathan is an ancient Aramaic translation of the books of the Prophets. Here it translates with words of "destroying utterly" (שֵׁיצָאָה).
Almost the same verse appears earlier in Jeremiah (Yirmeyahu / Jeremiah 30:11). The haftarah of Bo ends with this promise.