den Hut nehmen

Etymology
lit. 'to take the hat'.

Verb

 * 1)  to resign, quit