Israel must clean out the garbage completely. Then if they want security occupy Gaza or it will start over again.
Israel is very clear on the issue of protecting Palestinian civilians against collateral damage, as much as possible. Israel is also on a worldwide campaign with all their ambassadors to let the nations of the world know that and that they do not target Palestinian civilians, as they are falsely accused by the haters of Israel.
However, Israel will try to clear, as much as possible, the Hamas terrorist organization.