וַיַּעֲבֵ֥ר הַקְּדֵשִׁ֖ים מִן־הָאָ֑רֶץ וַיָּ֙סַר֙ אֶת־כָּל־הַגִּלֻּלִ֔ים אֲשֶׁ֥ר עָשׂ֖וּ אֲבֹתָֽיו׃
And he put away the sodomites out of the land, and removed all the idols that his fathers had made.
Read midrashic interpretation of I Kings 15:12: and classical rabbinic exegesis.