Any way to detach yourself from unrequited love?

I left this guy yesterday because of unrequited love. He wanted to still be friends but that was too painful. If you’ve seen my other questions this is the same guy that didn’t initiate
Any way to detach yourself from unrequited love?
Post Opinion