A pardon is essentially that. But only literally in the case of a conviction. You can issue blanket pardons which basically say "if you did something, you are pardoned". These do not have the direct acknowledgement of guilt but it's obviously heavily implied.