Deuteronomy 20:15-17
15 This is how you are to treat all the cities that are at a distance from you and do not belong to the nations nearby.
16 However, in the cities of the nations the Lord your God is giving you as an inheritance, do not leave alive anything that breathes.
17 Completely destroy them—the Hittites, Amorites, Canaanites, Perizzites, Hivites and Jebusites—as the Lord your God has commanded you.