Good question, honestly.
Not the biblical narrative, though.
Yahawah was going to literally throw away humanity, which he had given completely free will, because of their unrighteous choices. (Not by flood again, of course.)
Ya Yasha, his unique son, stepped in on our behalf.