King James Version
And it came to pass, when Joshua and the children of Israel had made an end of slaying them with a very great slaughter, till they were consumed, that the rest which remained of them entered into fenced cities.English Standard Version
When Joshua and the sons of Israel had finished striking them with a great blow until they were wiped out, and when the remnant that remained of them had entered into the fortified cities,New International Version
So Joshua and the Israelites destroyed them completely-almost to a man-but the few who were left reached their fortified cities.