to remove sth that is causing a problem from a place, group, etc.
rid sb / sth of sb / sth
to remove sth that is causing a problem from a place, group, etc.
Further measures will be taken to rid our streets of crime.
Definitions from the Oxford Advanced Learner's Dictionary, 9th edition