How to delete family types using Dynamo

Hi, I would like to delete all the family types except few that i needed. There are more than 150 family types are present in the rfa file. When i tried to use element type node or family type node, I cannot see the family types present in the family, except i am seeing the nested families inside the .rfa file. Is there any way i can see the family types using Dynamo?
How can i filter some of the types and delete the others?
Thank you for your attention.

@USER31 ,

it could look like this


if it is not in use just purge in the manage tab.

KR

Andreas

Thank you @Draxl_Andreas, I have created a Lighting fixture family with many nested families inside. When i tried to run your Dynamo model, In the ‘Element in Active view’ node doesn’t show the family types. It shows only the nested families presented. I wanted to delete all the family types except 5 families in the Lighting fixtures family. I could not find the ‘Elements.Delete’ node too.
If it’s okay i can shre with you the Rfa file.
Thank you for your time.


h

@USER31 ,

Are your nested families “isShared” ? check this first in your family.
Your nested family should be selectable via tab.

KR

Andreas

Yes the families are shared and i can see them, But i cannot see the Main family, Nested families inside the lighting fixture is shown but not the Family types of the lighting fixture.

@Draxl_Andreas
I want to delete the family types options as shown below image


But when i did your Dynamo script, I can see only the nested families as below