I thought I liked him, but I don't...Did I do the right thing?

Recently, my really good guy friend told me he liked me as more than a friend and at the time I also shared the same feelings and told him so. 3 or 4 weeks past and the question somehow came up again and I told him that my feelings had changed and I didn't wanna ruin a friendship over a boyfriend girlfriend relationship and I just wanted to go back to being good friends again. he didn't say much but the next day in class he totally ignored me and wouldn't even look at me ! so I texted him later that day and he told me he was angry that I lied to him about liking him 3 weeks ago and I was like I DID like you 3 weeks ago but as the days grew forth I realized I didn't like the boyfriend girlfriend thing and wanted to return to our relationship before as best friends. He didn't like this at all and called me a liar and hasn't really talked to me since. if he does he calls me a retard or a bitch... and I just keep feeling guilty and I don't even know why, Please Help
I thought I liked him, but I don't...Did I do the right thing?
Post Opinion