1960: ~20,000 nuclear warheads around the world
1967~1970: The Treaty on the Non-Proliferation of Nuclear Weapons was signed into force
1980: ~54,000 nuclear warheads around the world
That was how we "banned" nuclear weapons. When you hear "ban A" you should automatically translate it to "ensure that only a few most powerful entities can have A" in your head.