This tutorial shows you how to safely remove records between relationships.
Lets say we have two models and relation between them: