Model.EntityDeleteUnused#

Model.EntityDeleteUnused(output_collection)#

Deletes the entities in the output collection by Model.EntityPreviewUnused().

Parameters:

output_collection (Collection) – The collection containing the entities to check if they are unused.

Example#

Delete all unused properties in the collection#
import hm
import hm.entities as ent

model = hm.Model()

props  = hm.Collection(model, ent.Property)

model.EntityDeleteUnused(output_collection=props)