# Delete ALL Sheets not in Drawing Index

**URL:** <https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081>\
**Category:** Share\
**Tags:** revit, dynamo\
**Created:** [July 17, 2020, 3:20pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081 "2020-07-17T15:20:47Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tlarkin](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tlarkin](https://forum.dynamobim.com/u/Tlarkin)\
**Post date:** [July 17, 2020, 3:20pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081/1 "2020-07-17T15:20:47Z")

</div>

This compares the Drawing Index (Schedule) with all sheets, including placeholders, and deletes sheets not found in the Drawing Index. The only items that may need changing are the Drawing Index name, and the column index that is used for the sheet number. You will need the BimorphNodes package.

[Tool - Delete ALL Sheets not in Drawing Index.dyn](https://forum.dynamobim.com/uploads/short-url/dion1dtBdXaheilS0v4mItRX29t.dyn) (24.2 KB)

 ![Delete_Sheets_Not_In_Index](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/9/6/96cc0d57c8dc7b0c93c59cf8da5ed868859ef39c.png)

---

<div class="post-metadata">

**Author:** ![patrick\_podeyn](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/patrick_podeyn/32/86368_2.png) [@patrick\_podeyn](https://forum.dynamobim.com/u/patrick_podeyn)\
**Post date:** [July 17, 2020, 4:58pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081/2 "2020-07-17T16:58:34Z")

</div>

The one thing I would change about this workflow is to use the delete node from Springs since it requires a true bool to run. Not having that ability makes me a little scared at times. But, awesome workflow!

---

<div class="post-metadata">

**Author:** ![Tlarkin](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tlarkin](https://forum.dynamobim.com/u/Tlarkin)\
**Post date:** [July 17, 2020, 6:26pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081/3 "2020-07-17T18:26:10Z")

</div>

Thanks @patrick_podeyn  
I’ve updated it with your suggestion. Seems to work just fine after a few trials.  
Now _BimorphNodes_ and _spring nodes_ packages are required.

[Tool - Delete ALL Sheets not in Drawing Index v2.dyn](https://forum.dynamobim.com/uploads/short-url/8yRXAAZNfXDEIdMmxBx7qB9Hppp.dyn) (30.4 KB)

 ![Delete_Sheets_Not_In_Index_Springs](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/5/c/5c8ef1ff7ef0ff1a9f9a7130c2bb75bbccfe50aa.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Younger](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/robert_younger/32/205603_2.png) [@Robert\_Younger](https://forum.dynamobim.com/u/Robert_Younger)\
**Post date:** [July 17, 2020, 6:31pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081/4 "2020-07-17T18:31:03Z")

</div>

One more suggestion: Change the Categories selection to a combination of a String and Category.ByName. This helps insulate the script from version updates in Revit (like when Revit 2019 introduced a whole slew of new categories).

---

<div class="post-metadata">

**Author:** ![Tlarkin](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tlarkin](https://forum.dynamobim.com/u/Tlarkin)\
**Post date:** [July 17, 2020, 6:41pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081/5 "2020-07-17T18:41:12Z")

</div>

Thanks @Robert_Younger  
New update…(first two nodes replaced Category node)

[Tool - Delete ALL Sheets not in Drawing Index v3.dyn](https://forum.dynamobim.com/uploads/short-url/oN8PhNrU6Fb64BiVJJYD3Asuwqz.dyn) (31.8 KB)

 ![Delete_Sheets_Not_In_Index_Springs_v3](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/a/7/a75a8dcf900103cb4104c28c082673bfac5ed844.png)

---

<div class="post-metadata">

**Author:** ![Tlarkin](https://avatars.discourse-cdn.com/v4/letter/t/c37758/32.png) [@Tlarkin](https://forum.dynamobim.com/u/Tlarkin)\
**Post date:** [July 17, 2020, 7:04pm UTC](https://forum.dynamobim.com/t/delete-all-sheets-not-in-drawing-index/53081/6 "2020-07-17T19:04:27Z")

</div>

Patrick kindly grouped the script and added custom node names to clarify workflow logic.  
Now it’s perfect! 🙂

[Tool - Delete ALL Sheets not in Drawing Index v4.dyn](https://forum.dynamobim.com/uploads/short-url/iTmVsIjxNlxjvlxu4nF8ZYYCjn8.dyn) (35.5 KB)

 ![Delete_Sheets_Not_In_Index_Springs_v4](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/2/9/29b2802c17bfffcd0db1bb5214ecb920b6df4d67.png)
