If you say that someone is using a sledgehammer to crack a nut, you mean that they are using stronger measures than are really necessary to solve a problem.
See full dictionary entry for sledgehammer
a sledgehammer to crack a nut
said to mean that the methods someone is using to solve a problem are far stronger than is necessary
Bankers say that the proposed law is a sledgehammer to crack a nut.