Joshua captured all those royal cities and their kings. He and his men killed everyone in those cities with their swords. He totally destroyed them. He did just as Moses, the servant of the Lord, had commanded.
The Lord had commanded his servant Moses to do all these things. Moses had passed that command on to Joshua. And Joshua carried it out. He did everything the Lord had commanded Moses.