Joshua 11:12

11:12 Joshua captured all these royal cities and all their kings and annihilated them with the sword, as Moses the Lord’s servant had commanded.

Exodus 34:11-13

34:11 “Obey what I am commanding you this day. I am going to drive out before you the Amorite, the Canaanite, the Hittite, the Perizzite, the Hivite, and the Jebusite. 34:12 Be careful not to make a covenant with the inhabitants of the land where you are going, lest it become a snare among you. 34:13 Rather you must destroy their altars, smash their images, and cut down their Asherah poles.