Israel needs to lay siege to the Gaza Strip. Force the 2 million people who live there to turn all members of Hamas over or they will all starve to death. It is basically guaranteed to work. It has worked just about every time in history. Caesar conquered France like this in 52 BC.
https://en.wikipedia.org/wiki/Battle_of_Alesia
They are all members of Hamas; almost every one of them.