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.
clear somebody’s ˈname
prove that somebody is innocent: Throughout his years in prison, his family fought to clear his name.