If you decide to plead guilty and are convicted, you likely will not be able to vacate your conviction on appeal, except for some fundamental error during your matter that if uncorrected would represent a fundamental miscarriage of justice. However, after you have been convicted and served your sentence, you may be able to obtain an expungement of your criminal record, which means that your record is not available except to a limited set of government agencies for very specific purposes. Expungement is not available for certain kinds of offenses, typically those involving some element of violence.