And the Lord delivered it also, and the king thereof, into
 the hand of Israel
 At once, no opposition being made that we read of: 
 and he smote it with the edge of the sword, and all the souls that
 [were] therein, he let none remain in it;
 that is, Israel smote it, or Joshua, and indeed both; and this was according to the orders given them to be observed with respect to all the cities and nations of Canaan; and that because of their abominable sins and wickedness, and to make way and room for the people of Israel, ( Deuteronomy 7:1 Deuteronomy 7:2 ) ; 
 but did unto the king thereof as he did unto the king of Jericho:
 slew him with the inhabitants.