What is this 给 doing in this sentence?
給 6


  用於動詞前，表示加強「被動」或「處置」等語氣。


在這裡是「加強處置的語氣」。
沒有「給」，也可以，但是語氣較弱。

Used before a verb, to enhance the "passive" or "to deal with" and other tones.

It is the tone of "to deal with" here (in your example).
It is OK without 給, but the tone is weaker.