Script to delete 3D objects.

I would like to know if there are any scripts to delete 3D objects based on the level or properties modelled using openbuilding designer or openplant modeler.

This will help to clean the model of unwanted elements on projects having .sp model size more than 1.5 GB due to more than 1,00,000 or 2,00,000 elements.