Yahweh gave that city too, with its king, into the hand of Israel. He struck it down with the sword and everyone in it, leaving no survivor, and did to its king as he had done to the king of Jericho.
In context
28That same day Joshua captured Makkedah and struck it down with the sword. He devoted its king and everyone in it to destruction, leaving no survivor. He did to the king of Makkedah as he had done to the king of Jericho. 29Then Joshua, and all Israel with him, moved on from Makkedah to Libnah and fought against Libnah. 30Yahweh gave that city too, with its king, into the hand of Israel. He struck it down with the sword and everyone in it, leaving no survivor, and did to its king as he had done to the king of Jericho. 31Then Joshua, and all Israel with him, moved on from Libnah to Lachish. He camped against it and attacked it. 32Yahweh gave Lachish into the hand of Israel, and he captured it on the second day, striking it down with the sword, along with everyone in it, just as he had done to Libnah.