Boundaries and ex’s

Hi Brooke- In a recent podcast you talked about boundaries and not “kicking people out of your life” — I understand the notion that we cannot control how others behave, and that we must set boundaries for ourselves, and not for other people. You mentioned keeping people in your life as a teacher rather than avoiding them, or cutting them off. How does this pertain to ex’s. For example – I’ve had an on again/off again boyfriend in my life that in order to fully move on, I think I need to not see him anymore – so cut off on calls, texts, social media, etc. Is this taking the easy way out in your opinion? or sometimes necessary?
Thank you,