Remove all entries of a relationship given left node id programmatically

Quang Lai asked on September 9, 2016 17:43

Given a left node id value, is there a way to do RelationshipInfoProvider.RemoveRelationship(leftNodeID, relationshipNameId) ? That is, I want to clear all entries of this relationship for this (left) node id. I'd rather not have to look up all the existing right node ids and call the existing RelationshipInfoProvider.RemoveRelationship(

Correct Answer

Brenden Kehren answered on September 9, 2016 18:05

You will have to create a loop and remove them one by one as I don't believe there is a mass delete/remove relationship method in the API.

1 votesVote for this answer Unmark Correct answer

Recent Answers


Quang Lai answered on September 9, 2016 19:18

Is there a way for us to add our requests/suggestions? I think this would be a good to have.

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on September 9, 2016 19:26

Head on over to http://ideas.kentico.com and add your idea and let others vote on it.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.