cover your tracks
US /ˈkʌvər jʊər træks/
UK /ˈkʌvər jʊər træks/

1.
to hide or conceal evidence of one's actions, especially wrongdoing
:
•
After stealing the documents, he tried to cover his tracks by deleting all emails.
•
The politician was careful to cover his tracks regarding the scandal.