What Weepingbuddhist said. I blocked my ex on Facebook last week. Just staring at the button. I had already unfriended him but I was going back and couldn't stop myself from gleaning all the details I could, making conjectures that were hurtful about what he's doing, torturing myself.
So I did it, I pressed the button (had to tell two friends I was hesitating and get them to encourage me first).
Taking away the temptation will help. NC = No new hurts. And yes, stalking is a kind of contact.