As I said at the at the start.... one way would be to pump water into the tunnels in order to obliterate the Hamas infrastructure down there.
Been viewing recently an ancient city in Turkey that housed has 20000 people underground. It even housed horse stables.
Hope it doesn't weaken the foundation buildings of apartments left in Gaza though.