get rid of vs retain

get rid of

verb
  • to rid oneself of; dispose (of); to remove; to abolish; to lose 

retain

verb
  • To keep in possession or use. 

  • To employ by paying a retainer. 

  • To hold back (a pupil) instead of allowing them to advance to the next class or year. 

  • To keep in one's pay or service. 

  • To hold secure. 

How often have the words get rid of and retain occurred in a corpus of books? (source: Google Ngram Viewer )