Getting over a relationship takes time and you need to give yourself that space to hurt and then heal. You might not be able to sever all ties at one go, and continue being friends or talking and that's okay.
But, if you really want to get over him(or her) and move on, there are some things that you need to cut out from your life, right away!
1. Stop stalking them on social media
Just block them. No seriously, the urge to go to their profile and check their pictures is going to be there at all time, but if you've blocked them, there isn't much you'll be able to do.