# Cleaning up Text styles (purge is not enoug)

**URL:** <https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013>\
**Category:** Revit\
**Tags:** revit, dynamo\
**Created:** [August 20, 2018, 12:36pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013 "2018-08-20T12:36:55Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [August 20, 2018, 12:36pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/1 "2018-08-20T12:36:55Z")

</div>

Hi all,

I’m looking for a way to clean up the text fammelies

 ![image](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/e/1/e11f92c4e6baff87db75321b03be1c5149aa2fc0.png)

I know you can purg but it wil not clean up the right text styles. Is there a way to find thise items, clean them up ore move them to a other catagorie.

Thx in advance!

---

<div class="post-metadata">

**Author:** ![Mark.Ackerley](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/mark.ackerley/32/79310_2.png) [@Mark.Ackerley](https://forum.dynamobim.com/u/Mark.Ackerley)\
**Post date:** [August 21, 2018, 7:23am UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/2 "2018-08-21T07:23:58Z")

</div>

Hey,

This should get you moving… You can then filter to rename or delete or whatever…

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/7/2/729e22195fa8f600dea9ae0d7bf948d36fe5569d.jpeg)

Hope that helps,

Mark

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [August 21, 2018, 8:07am UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/3 "2018-08-21T08:07:47Z")

</div>

Once you have it selected and filtered using @Mark.Ackerley’s suggestion, you should see this thread: [How to Change Family Type](https://forum.dynamobim.com/t/how-to-change-family-type/10757)

I believe it should help with changing the type then you can purge afterwards.

---

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [August 21, 2018, 11:41am UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/4 "2018-08-21T11:41:19Z")

</div>

@Mark.Ackerley @kennyb6 Thx guys looking in to it right now

> [@kennyb6](#):
>
> Once you have it selected and filtered using @Mark.Ackerley’s suggestion, you should see this thread: [How to Change Family Type](https://forum.dynamobim.com/t/how-to-change-family-type/10757)
> 
> I believe it should help with changing the type then you can purge afterwards.

Running in to a littel isseu cant select the Textnotestyles to filter ore change it to a other fammalie name. Is this becouce it is a System famalie and not a “normal” Revit Famalie?

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

---

<div class="post-metadata">

**Author:** ![kennyb6](https://avatars.discourse-cdn.com/v4/letter/k/7ba0ec/32.png) [@kennyb6](https://forum.dynamobim.com/u/kennyb6)\
**Post date:** [August 22, 2018, 1:08am UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/5 "2018-08-22T01:08:49Z")

</div>

> [@How to Change Family Type](https://forum.dynamobim.com/t/how-to-change-family-type/10757/4):
>
> All elements of family type ( universal ) is also from Clockwork package

This post shows how to do for System Families. I think your problem is that your to and from groups use a plain codeblock TextNote class name, not a family type. You have to plug in a familytype for this to work. Try using a TextNoteType.ByName node instead of the codeblock.

---

<div class="post-metadata">

**Author:** ![SPARTAN](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/spartan/32/191306_2.png) [@SPARTAN](https://forum.dynamobim.com/u/SPARTAN)\
**Post date:** [August 29, 2018, 1:49pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/6 "2018-08-29T13:49:45Z")

</div>

Oke,

I’m doing somting wrong ore its becouse its a System Familie but it is not working at al 🙁 Last attempt lookt als follow:

 ![Capture](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/0/2/025a2d4037cf489f7daf92ff61f37fd935531cee.png)

The attempt is to channge al the types to to same so I can purg the Duplicates whit the same hights ect.

I can already see all items that are in the Project I just need to change te types of those duplecats whit a difrent name. But how 🤔

Thright the post above (thx for the hint) did not work for me pleas tell me if I mist stomting. Thx

---

<div class="post-metadata">

**Author:** ![simon\_tung9K994](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@simon\_tung9K994](https://forum.dynamobim.com/u/simon_tung9K994)\
**Post date:** [January 8, 2021, 3:33pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/7 "2021-01-08T15:33:44Z")

</div>

Beginner here how do you actually delete a text type once you have run this script?

---

<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:** [January 8, 2021, 6:09pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/8 "2021-01-08T18:09:22Z")

</div>

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

The element.delete node may be out of the box in more recent Dynamo releases, my build is somewhat behind. But the deletion would be the final step in the screenshot.

---

<div class="post-metadata">

**Author:** ![simon\_tung9K994](https://avatars.discourse-cdn.com/v4/letter/s/3bc359/32.png) [@simon\_tung9K994](https://forum.dynamobim.com/u/simon_tung9K994)\
**Post date:** [January 8, 2021, 9:27pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/9 "2021-01-08T21:27:05Z")

</div>

I still can’t get it to work maybe the text is in a family or somewhere else is it possible to delete say number 3 1500 coversheet in your list regardless of it being used or not?

---

<div class="post-metadata">

**Author:** ![Evan.Pond](https://sea2.discourse-cdn.com/flex022/user_avatar/forum.dynamobim.com/evan.pond/32/98460_2.png) [@Evan.Pond](https://forum.dynamobim.com/u/Evan.Pond)\
**Post date:** [May 14, 2021, 6:11pm UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/10 "2021-05-14T18:11:41Z")

</div>

I needed the same thing and just made it based on info here. It deletes the text type and any text using that type.

 ![Delete Text Type](https://us1.discourse-cdn.com/flex022/uploads/dynamobim/original/3X/d/0/d0f6bfa241aade076458822e5e9c2a6dbf83c942.png)  
[Delete Text Type.dyn](https://forum.dynamobim.com/uploads/short-url/4upU1rZyqh6bJttXUztxMQkCiMA.dyn) (13.0 KB)

---

<div class="post-metadata">

**Author:** ![ppittas](https://avatars.discourse-cdn.com/v4/letter/p/e274bd/32.png) [@ppittas](https://forum.dynamobim.com/u/ppittas)\
**Post date:** [May 17, 2021, 4:01am UTC](https://forum.dynamobim.com/t/cleaning-up-text-styles-purge-is-not-enoug/25013/11 "2021-05-17T04:01:18Z")

</div>

and if you have elements using this text type, what do they change to once you delete it? Most likely for OP they weren’t purging out as they are being used in a legend
