How to get over someone?

I cut him out my life because he’s bad for me but I obviously still care... how can I move on?