I told my best friend I can't see her anymore, did I do the right thing?

This girl and i have known each other for 2 years. When we first met we dated for 8 months then we stopped speaking for 4 months.

After the 4 months of no contact she contacted me again, and now for the past year she has constantly been changing her feelings towards me by the day. one day crazy about me, next day ignoring me, then just wanting to be friends, then wanting me like crazy again, back to ignoring me.

In the last 3 months we started to spend a lot more time together and most the time it's her initiating and we have a great time together. but recently we would go out, and she will constantly throughout the time go from flirting with me, kissing me, to pulling away completely. this past weekend she asked me to go to movies and dinner. during dinner she was all over me to a point where she even said we should stop it cos we in public. after that we go to movies and i tried to hold her hand and she totally pulled away and pretty much leaned completely away from me for the whole movie. so i was really fed up with her mixed signals and after the movie she could see i was pissed off so she asked me what's up and i told her i can't do this anymore. she said she's confused about her life and she thinks we should be friends only. I said to her ok that's fine but i need to move on then cos i can't wait forever and i can't keep feeling confused 24.7.

I said right now I can't be her friend because I like her too much and I need time to get over. She started crying and said she understands and then that was it. she called me the next day to talk about it again and we just said the same stuff again and she told me she's really sad about this. i just said again i'm sorry but i need time to get over her if we going to have a chance to be friends again because i care about her more than any girl i've met. i hope i did the right thing.
I told my best friend I can't see her anymore, did I do the right thing?
Add Opinion