Not a man was left in Ai or Bethel who did not go out after Israel. They left the city wide open and went in pursuit of Israel.
In context
15Joshua and all Israel let themselves be beaten back before them and fled toward the wilderness. 16All the people in the city were called out to pursue them, and as they pursued Joshua, they were drawn away from the city. 17Not a man was left in Ai or Bethel who did not go out after Israel. They left the city wide open and went in pursuit of Israel. 18Yahweh said to Joshua, “Point the javelin in your hand toward Ai, for I will give it into your hand.” So Joshua pointed the javelin in his hand toward the city. 19As soon as he stretched out his hand, the men in ambush rose quickly from their place and rushed in. They entered the city, captured it, and hurried to set it on fire.