be detrimental to vs undo

be detrimental to

undo

verb
  • To reverse the effects of an action. 

  • To unfasten. 

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

noun
  • An operation that reverses a previous action. 

How often have the words be detrimental to and undo occurred in a corpus of books? (source: Google Ngram Viewer )