Was I wrong for telling my friend we can’t be friends anymore since he just likes me as a friend?

We’ve known each other since high school I liked him but wasn’t sure if he liked me back so fast forward he’s asking me to send him my picture of boobs and he sent me a picture of his private so I asked him through text does he like me he said only as a friend so I was offended. then he asked me if his penis was big I said I’m not going to answer that and I’m not showing you anything since we aren’t together and then I told him since you don’t like me romantically we can’t be friends was I wrong?
Was I wrong for telling my friend we can’t be friends anymore since he just likes me as a friend?
Post Opinion