sacred pillars: See study note on 7:5.
Asherah poles: They dedicated these wooden poles to the mother goddess, Asherah. They were the feminine counterpart to the sacred pillar.
wipe out their names: Destroying all idols and traces of pagan worship would lead to the names of these gods being forgotten. Future generations would not know about them (see also study note on 7:24).