Was I wrong to ghost?

Ma
I have a cousin who I was close to and hung out with for about 2 years. Our family have a problem with her and about 4 years ago, there was a nasty fight between her and my cousins which also involved our aunts. For two years, she did not show up at family affairs. About two years ago, I reached out because she decided to go back to school and wanted to help her out with that. 
From there we started hanging out and developed a close relationship. We told each other our problems and I also heard from her side about the family issue. I know that boths sides were wrong and right. During the two years that we hung out, she was very verbal about her dislikes about people, and willing to point out the things she doesn't like about MY body. She spends hours talking negatively about our family and makes fun of people for the way they look and even talk. She calls me stupid and dumb just because she thinks we're close enough but some times are inappropriate like when I fail an exam. 
She gets very clingy every time she breaks up with her boyfriend, but leaves me instantly once they get back. 
I reached a point where I thought enough is enough and completely stopped talking to her. It's been 7 months and my life has become much more positive after removing her from my life. However, I feel guilty once in a while for what I did cause we did have a close relationship. Also, I never really gave her an explanation for why I stopped talking to her so now she's wondering why. So was I harsh or right for ghosting?