Joshua did not cease his attack until he had completely destroyed every inhabitant of Ai. 