Not the entire city. I think they instructed to keep the minor female virgins alive for obvious reasons.
And they utterly destroyed all that [was] in the city, both man and woman, young and old, and ox, and sheep, and ass, with the edge of the sword.