That would be apostasy, the renunciation of a belief.
Heresy, as I understand it, is holding the wrong belief.
it’s only apostasy if at one point you actually did believe.
Atheists/agnostics/etc who never believed (and were not baptized, depending on the faith) are the “unconverted”; fair game for proselytization by evangelicals. As many atheists have experienced.
Atheism is a belief in no god. I think agnosticism is closer to apostasy.