Deuteronomy 20
15 So you are to do to all the towns far away, which are not the towns of these nations.
16 Ref But in the towns of these peoples whose land the Lord your God is giving you for your heritage, let no living thing be kept from death:
17 Ref Give them up to the curse; the Hittite, the Amorite, the Canaanite, the Perizzite, the Hivite, and the Jebusite, as the Lord your God has given you orders: