Like for coworkers, fellow students, cousins, etc. You can’t just cut them out of your life, you have to keep seeing them over and over again.
Basically you just have to sit down with the other person and redefine the relationship.
Don’t date cousins in the first place. That would take care of it.