This is a little disingenuous.
Yes, states described as communist attempted to eradicate religion; to do that, they merely replaced religion with the state. The state became the church, its leaders became the saints.
Don't conflate the example of failed, corrupt Stalinist communist states with the concept of the eradication of religion, they're not at all mutually inclusive.