Do a number on (someone orsomething)

To hurt or damage someone or something.

The students did a number on the spectator stands during the soccer game.