It's not so hard.
If we humans die, the world won't end.
If all living things die, the world won't end.
If earth ceases to exist, it means it ends.
The way it will probably end is by sun running out of hydrogen to burn, becoming a red giant and swallowing the earth.