Small update for deleteRelations() method.