In the Gaza Strip, Hamas is mostly underground. Wiping them out will essentially entail leveling Gaza. From Seymour Hersh at seymourhersh.substack.com:
As refugees crowd the border with Egypt, Israel prepares to hit Gaza City with US-supplied bunker busters

Palestinians walking through the ruins of Gaza City after Israeli airstrikes on Saturday. / Photo by Ahmad Hasaballah/Getty Images.
It’s been one week since the horrific Hamas attacks on Israel took place, and the shape of what is to come from the Israeli armed forces is clear, and uncompromising.
Over the past week Israeli jets have conducted around-the-clock bombing of non-military targets in Gaza City. Apartment buildings, hospitals, and mosques were torn apart, with no prior warning and no effort to minimize civilian casualties.
By the end of the week Israeli jets were also dropping leaflets telling the citizens of Gaza City and its surrounding areas in the north that those who wished to survive had better start going south—walking if necessary—25 miles or more—to the Rafah border crossing leading to Egypt. As of this writing, it was not clear whether financially stricken Egypt will allow a million immigrants, many of them committed to the Hamas cause, to cross. In the short term, I have been told by an Israeli insider that Israel has been trying to convince Qatar, which at the urging of Prime Minister Benjamin Netanyahu was a long-time financial supporter of Hamas, to join with Egypt in funding a tent city for the million or more refugees awaiting across the border. “It’s not a done deal,” the Israeli insider told me. Israeli officials have warned Egypt and Qatar that without a landing site, the refugees will have to “go back to Gaza.”
One possible site, the insider said, is a long abandoned chunk of land in northern part of the Sinai Peninsula, near the border crossing from Gaza, that was the site of an Israeli settlement known as Yamit when the peninsula was seized by Israel after its victory the Six-Day War of 1967. The settlement was evacuated and bulldozed by Israel before Sinai was returned to Egypt in 1982. The Israeli hope is that Qatar and Egypt will take the refugee crisis off its hands.

Map courtesy Wikimedia Commons.