I'm looking for an idiom or a synonym for a situation when someone has taken a heavy handed measure that achieves the desired effect, but also goes above this, affecting things that aren't a problem.
For example:
If one tree is diseased, but the surrounding ones are fine, chopping down all of the trees.
I'm sure there's a phrase for this. I thought of "using a sledgehammer to crack a nut" but I'm sure there's something specific.