keep (one's) slate clean
To maintain an impeccable record; to refrain from committing any mistakes or wrongdoings. If Jeremy can keep his slate clean from now until his next hearing, they might be willing to release him from prison on parole. I know my time in rehab will work against me in the election, but I've kept my slate clean since then.