knock on the head vs undo

knock on the head

verb
  • To put an end to; to defeat or frustrate (a scheme or project). 

undo

verb
  • To impoverish or ruin, as in reputation; to cause the downfall of. 

  • To reverse the effects of an action. 

  • To unfasten. 

noun
  • An operation that reverses a previous action. 

How often have the words knock on the head and undo occurred in a corpus of books? (source: Google Ngram Viewer )