2 Kings 23 24
Josiah did other things to obey the rules that were written in the Book of God's Law. That was the book that Hilkiah the priest had found in the Lord's temple. Josiah removed the people who spoke to the spirits of dead people and the other magicians. He destroyed the images that people worshipped in their homes. He destroyed all the other idols that people had started to worship in Jerusalem and in all Judah.
Compare with other 3 random translations
AMP 2 Kings 23:24Moreover, Josiah removed the mediums and the soothsayers and the teraphim (household gods) and the idols and all the repulsive things that were seen in Judah and in Jerusalem, so that he might fulfill the words of the law written in the book which Hilkiah the priest found in the house (temple) of the Lord.
CSB 2 Kings 23:24In addition, Josiah eradicated the mediums, the spiritists, household idols, images, and all the abhorrent things that were seen in the land of Judah and in Jerusalem. He did this in order to carry out the words of the law that were written in the book that the priest Hilkiah found in the Lord’s temple.
YLT 2 Kings 23:24And also, those having familiar spirits, and the wizards, and the teraphim, and the idols, and all the abominations that were seen in the land of Judah, and in Jerusalem, hath Josiah put away, in order to establish the words of the law that are written on the book that Hilkiah the priest hath found in the house of Jehovah.