One doesn't have to kill Gods. Just ignore them and their fantasy wars. Then they will just loose their powers and float off into space.
See the episode 'Who Morns for Adonis'. Where Kirk et al had to deal with a Greek God.
Closer to reality, is the wizard of Oz.
He speaks wisely, more trouble than they're worth.