An Affidavit of Paternity can be revoked under certain circumstances. But it differs greatly depending on the laws of your state. Most states permit revocation of a paternity affidavit, but many also significantly restrict how and when you may do so.
States often require that a revocation occurs within a certain period. Others require a court hearing to rescind an acknowledgment of paternity.