Joshua made war a long time with all those kings.
There was not a town that made peace with the Israelites, except the Hivites, the inhabitants of Gibeon; all were taken in battle.
For it was the Lord's doing to harden their hearts so that they would come against Israel in battle, in order that they might be utterly destroyed, and might receive no mercy, but be exterminated, just as the Lord had commanded Moses.
At that time Joshua came and wiped out the Anakim from the hill country, from Hebron, from Debir, from Anab, and from all the hill country of Judah, and from all the hill country of Israel; Joshua utterly destroyed them with their towns.
None of the Anakim was left in the land of the Israelites; some remained only in Gaza, in Gath, and in Ashdod.
So Joshua took the whole land, according to all that the Lord had spoken to Moses; and Joshua gave it for an inheritance to Israel according to their tribal allotments. And the land had rest from war.
New Revised Standard Version Bible, copyright 1989, Division of Christian Education of the National Council of the Churches of Christ in the United States of America. Used by permission. All rights reserved. (New Revised Standard Bible Version Online)