Do you mean some states allow a re-do of your first vote?
A few states allow AFAIK. Some COUNTIES may allow going to the county office in person and ask for a new ballot and void the old one.
But you can withdraw your vote in many states