Currently fighting the urge to angry text my ex

My ex an I broke up about 2 weeks ago. We were together for almost 3 years, he was my first love. I feel like I still don’t completely comprehend why we broke up because we both still loved each other. Nothing bad happened but we were just in a really unhealthy relationship and I haven’t been taking care of my mental health and there was no way to work through it cause we’ve been trying for a very long time to make it work.

He said he didn’t want to completely close the door because we both hope that we will both sort our own problems out and maybe we can try again but thinking reasonably I don’t think that’ll happen. We’ve still been texting each other and decided to meet up this weekend to talk about things but we ended up having sex and I slept over. Then in the morning I asked where do we stand now and he told me he still can’t get back together so I blew up and have been angry ever since. So I confronted him and he agreed he was wrong for stringing me along for his own comfort through this break up since I’ve told him plenty of times we can’t be in contact with each other but my heart still wants him so I let it happen. He finally agreed to cut off all contact except the occasional “check in” which is driving me crazy.

Now I’m just angry cause something recently came up and he’s the only person I trust and feel comfortable talking to about it but I can’t. I want to delete his pictures off my Instagram, delete him off social media, block his number but I feel like that’s completely irrational since I still have hope that we’ll eventually get back together. I’m stressed and all I want to do right now is text him and take out all my anger on him but I know I can’t do that.

What do I do I’ve never gone through a break up and my friends are no help because they all keep saying don’t worry you guys will get back together but I don’t want that hope anymore