Removing indeces based on matching list values

I’m trying to remove select items from a longer list of sequential values. I was able to achieve this by entering 3 example values into a code block and pair the Clockwork “List.MatchWithKeyValues” node with the “If Equal Return Index” node from the package manager…

Is there a simpler way to achieve the same results? I am trying to stick to the default Dynamo nodes as much as possible.

get indeces by matching value

The builtin node “SetDifference” should do the trick

SetDifference

 

Ahhh, perfect! I have never used this node before, I knew there had to be a more efficient method. Thanks Sylvester.