15 That’s what you must do to all the cities that are located far away from you—specifically, those cities that don’t belong to these nations here.
16 But in the case of any of the cities of these peoples—the ones the Lord your God is giving you as an inheritance—you must not spare any living thing.
17 Instead, you must place these under the ban: Hittites, Amorites, Canaanites, Perizzites, Hivites, and Jebusites—just as the Lord your God commanded you.
18 Then they can’t teach you to do all the detestable things they did for their gods, with the result that you end up sinning against the Lord your God.
19 Now if you have been attacking a city for some time, fighting against it and trying to conquer it, don’t destroy its trees by cutting them down with axes. You can eat from those trees; don’t cut them down! Do you think a tree of the field is some sort of warrior to be attacked by you in battle?
20 That said, if you know that a tree is not a food-producing tree, you are allowed to destroy it, cutting it down and using it in the siege against the city that is fighting against you until it falls.