Both of you were in relation for different needs. You got the emotional support which you wanted and probably that made you dependent on him. Now accept that he has lost the interest in the relation. You can not compel any body to stay in the relation. Accept that now it’s over. He is going to come in your thoughts and memory; you do not have to do any thing to drive that out. Acceptance and time will take care of the rest.