# Removing indeces based on matching list values

**URL:** <https://forum.dynamobim.com/t/removing-indeces-based-on-matching-list-values/1837>\
**Category:** Packages\
**Created:** [July 22, 2015, 7:58am UTC](https://forum.dynamobim.com/t/removing-indeces-based-on-matching-list-values/1837 "2015-07-22T07:58:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Kyle\_Martin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kyle_martin/32/15927_2.png) [@Kyle\_Martin](https://forum.dynamobim.com/u/Kyle_Martin)\
**Post date:** [July 22, 2015, 7:58am UTC](https://forum.dynamobim.com/t/removing-indeces-based-on-matching-list-values/1837/1 "2015-07-22T07:58:29Z")

</div>

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](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/e/e3244a1a792259b17e7a9ebffef65fa3674287a1.png)

---

<div class="post-metadata">

**Author:** ![Sylvester\_Knudsen](https://avatars.discourse-cdn.com/v4/letter/s/d9b06d/32.png) [@Sylvester\_Knudsen](https://forum.dynamobim.com/u/Sylvester_Knudsen)\
**Post date:** [July 22, 2015, 8:32am UTC](https://forum.dynamobim.com/t/removing-indeces-based-on-matching-list-values/1837/2 "2015-07-22T08:32:33Z")

</div>

The builtin node “SetDifference” should do the trick

![SetDifference](https://cdck-file-uploads-us1.s3.dualstack.us-west-2.amazonaws.com/flex022/uploads/dynamobim/original/2X/6/6d9233037a7ba3bc902436851e9064483e1647d2.png)

&nbsp;

---

<div class="post-metadata">

**Author:** ![Kyle\_Martin](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/kyle_martin/32/15927_2.png) [@Kyle\_Martin](https://forum.dynamobim.com/u/Kyle_Martin)\
**Post date:** [July 22, 2015, 8:49am UTC](https://forum.dynamobim.com/t/removing-indeces-based-on-matching-list-values/1837/3 "2015-07-22T08:49:29Z")

</div>

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