Force Delete last elements of Revit system types

Hello I am wondering if it is possible to Force Delete last elements of Revit system types with python node in Dynamo, for example all wall types,railings, ramps,roofs,stairs,flex ducts,ceilings, like this screenshot categories for example


I just tried to delete by using some different package nodes, which result is that last remaining elements of type cannot be deleted

deleteelementsofRevitthatdonotallowtodeletemanually.dyn (17.0 KB)

You cannot delete the last element of system classes in the model. Forcing the issue will result in corrupted models and data loss (I’ve seen family types and parameters cease to be). Even if you don’t get corruption opening with audit (and in some cases even just opening) will create a new type for you.

If you are explicitly blocked from doing something in the UI, don’t make the API do it.

2 Likes