I mean their main objective is to decimate Hamas as an entity in Gaza, they know they'll never get all of them but destroying all their infrastructure and weapons (and other) caches along with their leadership is critical. I'm sure they know they'll never end the movement,but they can destroy nearly all their large scale capabilities.
There is a way to end the movement and that was what Rabin tried to do in 1992. The Oslo accord was about making peace with the more moderate PLO. The idea was that the Palestinian people themselves would reject the doctrine of the Hamas and get rid of it.
Personally I think it could have worked given time and more intelligence work but now it will be much harder. The Hamas controlled the school system in Gaza. I just watched a video of a bunch of kids, no older than mine. Cute as pie, telling the camera how horrible the Jews are and that they want to drive a car into them when they grow up. That nothing is more holy than to be a martyr for god. Pretty fucked up stuff.