# Help a beginer with a script

**URL:** <https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463>\
**Category:** Revit\
**Created:** [September 4, 2023, 1:25pm UTC](https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463 "2023-09-04T13:25:41Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![np7913](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@np7913](https://forum.dynamobim.com/u/np7913)\
**Post date:** [September 4, 2023, 1:25pm UTC](https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463/1 "2023-09-04T13:25:41Z")

</div>

Hi  
I would like to create a script that deletes all tags that lacks data, (that show a ? in tag Tag)

---

<div class="post-metadata">

**Author:** ![dan.buckingham](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/dan.buckingham/32/168139_2.png) [@dan.buckingham](https://forum.dynamobim.com/u/dan.buckingham)\
**Post date:** [September 4, 2023, 1:29pm UTC](https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463/2 "2023-09-04T13:29:26Z")

</div>

There might be a specific reason why you are wanting a script, but [pyRevit](https://discourse.pyrevitlabs.io/) does already have a tool that achieves this.

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/8/9/899296551a265c4ac8332cd14691ea14473d64d9.png)

---

<div class="post-metadata">

**Author:** ![jacob.small](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/jacob.small/32/161030_2.png) [@jacob.small](https://forum.dynamobim.com/u/jacob.small)\
**Post date:** [September 4, 2023, 1:39pm UTC](https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463/3 "2023-09-04T13:39:03Z")

</div>

Some stuff to try:

1. Get all the tags
2. Get each tag’s displayed value
3. Filter out any with a string that is not equal to an empty string or a `?`.
4. Delete all remaining tags.

---

<div class="post-metadata">

**Author:** ![np7913](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@np7913](https://forum.dynamobim.com/u/np7913)\
**Post date:** [September 5, 2023, 6:24am UTC](https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463/4 "2023-09-05T06:24:49Z")

</div>

Thanks 😃

---

<div class="post-metadata">

**Author:** ![np7913](https://avatars.discourse-cdn.com/v4/letter/n/49beb7/32.png) [@np7913](https://forum.dynamobim.com/u/np7913)\
**Post date:** [September 5, 2023, 6:25am UTC](https://forum.dynamobim.com/t/help-a-beginer-with-a-script/93463/5 "2023-09-05T06:25:45Z")

</div>

Thanks
