God did that with the flood.
And said he wouldn’t do it again.
Not the WHOLE earth via a flood
True.
Parts of the earth however... no such deal.
Or by other means such as fire or volcano or earthquake or meteor named wormwood... famine or pestilence whatever... you get the general drift.