Josiah swept away every detestable thing from all the territories belonging to the Israelites, and he made everyone in Israel serve Yahweh their God. As long as he lived they did not turn away from following Yahweh, the God of their ancestors.
In context
31The king stood at his post and sealed the covenant before Yahweh: to follow Yahweh, to keep his commandments, his testimonies and his statutes with all his heart and with all his soul, and so to carry out the words of the covenant written in this book. 32He had everyone present in Jerusalem and in Benjamin take their stand on it, and the inhabitants of Jerusalem lived by the covenant of God, the God of their ancestors. 33Josiah swept away every detestable thing from all the territories belonging to the Israelites, and he made everyone in Israel serve Yahweh their God. As long as he lived they did not turn away from following Yahweh, the God of their ancestors.