Though it would accompanied some pains, so you would have to it the way that it would be good to both parties. Here are some tips that you might need when you are embarking on this course.
Never break up on a phone, unless your boyfriend or girlfriend has an attitude of violence. Don't tell you friend to deliver the break up message for you. This is pure rude and it is not mature. It would be ok and better if you told the person face to face. And when you are doing this, please be truthful. Tell the person that you need to move on with your life, providing full and good reasons why you are breaking up. It might hurt for a while but with time both of you would get to fell better and more relieved.
Never to pick up a lonely place where both of you would have time all to yourselves to talk. Do not also break up in a middle of a fight or emotional misunderstanding. This is not nice. I am stating all these because it would be a nice thing if you break and still become friends and not enemies.