clear somebody's name
clear (one's) name
To exonerate oneself or another of a criminal charge or allegation of wrongdoing. I was only accused of that crime because I look like the perpetrator, so I was able to clear my name. Good luck trying to clear your name once people think you've done something wrong.