What defines the goal of the current war in Gaza?

The over 200 kidnapped captives a clear priority. However, Israel fights a regime change war. The total unconditional surrender of Hamas defines the Will of the People of Israel to achieve justice for the slaughter of some 1400 Israelis on October 7th. Just that simple.