The same way the Greek and Nordic religions and religions of old became extinct; some other theocracy or ideology pushes them out. I have no faith in humanity on this point, lest we drastically change our nature, we're gonna cling to superstition as long as we have our current nature.
"The first principle is that you must not fool yourself — and you are the easiest person to fool." - Richard P. Feynman