The others also came out of the city against them, so they were in the midst of Yisra’ĕl, some on this side and some on that side. And they struck them until none were left, and none had escaped.
“And when יהוה your Elohim gives them over to you, you shall strike them and put them under the ban, completely. Make no covenant with them, and show them no favour.
And on that day Yehoshua captured Maqqĕḏah, and he struck it with the edge of the sword, and he put its sovereign under the ban – them and all the people who were in it, he left no survivor. And he did to the sovereign of Maqqĕḏah as he had done to the sovereign of Yeriḥo.
For when Yehoshua and all Yisra’ĕl saw that the ambush had captured the city and that the smoke of the city went up, they turned back and struck the men of Ai.