The Nazis aim was not the extirpation of religion per se, but the destruction of both Judaism and Christianity, and their replacement by a new state cult.
That new religion combined elements of neo-paganism and occultism with the idolatrous worship of "German-ness" in general and the person of Adolf Hitler in particular.