He got rid of the male prostitutes that were at the places where the people worshiped idols, and he also got rid of all the idols that his ancestors had made.