tirar o cavalo da chuva

Etymology
lit. 'to move the little horse away from the rain'.

Verb

 * 1) to give up; to (completely) forget an idea one was probably obsessed with