The phrase
"to exorcise the demon" means to get rid of or remove something troublesome, harmful, or negative from a person or situation. It is often used metaphorically to describe overcoming a personal struggle or defeating a difficult problem.
Full definition