24-25When it was all over, Israel had killed everyone in Ai, whether in the fields or in the wilderness where they had chased them. When the killing was complete, the Israelites returned to Ai and completed the devastation. The death toll that day came to twelve thousand men and women—everyone in Ai.
26-27Joshua didn't lower his outstretched javelin until the sacred destruction of Ai and all its people was completed. Israel did get to take the livestock and loot left in the city; God's instructions to Joshua allowed for that.