It means make yourself free of something that is annoying you or you do not want it. for example look to this sentence: I cannot get rid of headache.