KJV
And that day Joshua took Makkedah, and
smote it with the edge of the sword, and the king thereof he utterly
destroyed, them, and all the souls that [were] therein; he let none remain:
and he did to the king of Makkedah as he did unto the king of Jericho.
BSB
On that day Joshua captured Makkedah and put it to the sword, along with its king. He devoted to destruction everyone in the city, leaving no survivors. So he did to the king of Makkedah as he had done to the king of Jericho.