do away with vs knock on the head

do away with

verb
  • To abolish; to put an end to; to eliminate. 

  • To have someone killed. 

knock on the head

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

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