Joshua made war a long time with all those kings.
There was not a city that made peace with the people of Israel, except the Hivites, the inhabitants of Gibeon; they took all in battle.
For it was the LORD's doing to harden their hearts that they should come against Israel in battle, in order that they should be utterly destroyed, and should receive no mercy but be exterminated, as the LORD commanded Moses.
And Joshua came at that time, 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 cities.
There was none of the Anakim left in the land of the people of Israel; only in Gaza, in Gath, and in Ashdod, did some remain.
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.
Revised Standard Version of the Bible, copyright 1952 [2nd edition, 1971] by the 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. (Revised Standard Version - Holy Bible)