# Delete duplicate parameter except with value

**URL:** <https://forum.dynamobim.com/t/delete-duplicate-parameter-except-with-value/20721>\
**Category:** Revit\
**Tags:** clockwork, archi-lab, dynamo\
**Created:** [April 4, 2018, 9:08pm UTC](https://forum.dynamobim.com/t/delete-duplicate-parameter-except-with-value/20721 "2018-04-04T21:08:20Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jason\_Trahan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jason_trahan/32/10935_2.png) [@Jason\_Trahan](https://forum.dynamobim.com/u/Jason_Trahan)\
**Post date:** [April 4, 2018, 9:08pm UTC](https://forum.dynamobim.com/t/delete-duplicate-parameter-except-with-value/20721/1 "2018-04-04T21:08:20Z")

</div>

I can find duplicate parameters and delete them but im looking to filter out the parameters that have a value and choose those to keep and delete the rest but i’m stuck. Any help would be appreciated.

[Delete parameters.pdf](https://forum.dynamobim.com/uploads/short-url/op7hWd8VB3UucNN1E63AtpIHPTh.pdf) (289.1 KB)

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/c/c/cc309b07645f99d84d6204856254cf6e2330f94a.jpg)

Thanks, Jason  
[Parameter delete3.dyn](https://forum.dynamobim.com/uploads/short-url/A2P5OuXra70OY2rHLjAAZyqe8C.dyn) (22.4 KB)

---

<div class="post-metadata">

**Author:** ![Jason\_Trahan](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jason_trahan/32/10935_2.png) [@Jason\_Trahan](https://forum.dynamobim.com/u/Jason_Trahan)\
**Post date:** [April 10, 2018, 2:05am UTC](https://forum.dynamobim.com/t/delete-duplicate-parameter-except-with-value/20721/2 "2018-04-10T02:05:11Z")

</div>

Update: I am able to filter out the duplicate parameters and delete the ones without value. The value in the parameters do not duplicate, only the ParameterElement ids duplicate.

Regards, Jason

![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/f/6/f69b34e1bfecd02580511dffdf37abd9486a18c5.png)

---

<div class="post-metadata">

**Author:** ![Revit\_Noob](https://avatars.discourse-cdn.com/v4/letter/r/a587f6/32.png) [@Revit\_Noob](https://forum.dynamobim.com/u/Revit_Noob)\
**Post date:** [March 22, 2019, 2:43am UTC](https://forum.dynamobim.com/t/delete-duplicate-parameter-except-with-value/20721/3 "2019-03-22T02:43:50Z")

</div>

Hi @Jason_Trahan i am having the same issue now…however the graph is not so clear to see so i cannot re-create the code.

can you share your final dyn file instead?  
thanks

---

<div class="post-metadata">

**Author:** ![architectcoding](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/architectcoding/32/105118_2.png) [@architectcoding](https://forum.dynamobim.com/u/architectcoding)\
**Post date:** [March 22, 2019, 4:12am UTC](https://forum.dynamobim.com/t/delete-duplicate-parameter-except-with-value/20721/4 "2019-03-22T04:12:30Z")

</div>

Hi,  
instead of copying it, for learning purposes, why don’t you start a new thread, share your own graph and see how far have you reached?  
From there we can help you to get where you want.
