It's okay to do it but I honestly don't see why someone would want to.
I get that it hurts and you don't want to think about them anymore but there are still happy memories you've made with that person. In 20 or 30 years you might want to look back on that time, see how that relationship pushed you further to who you are now. I think it's okay to keep them.