That's a personal decision. If you've had a catastrophic breakup and want to get over it, it might be for the best to unfollow and block your ex on all social media. If you want to remain friends and aren't triggered by seeing updates and photos from time to time, it may be enough to turn off notifications from their posts and updates.