def __call__(self, owner=None):
    for obj in self.blender_objects:
        try:
            if isinstance(obj, bpy.types.Object):
                bpy.data.objects.remove(obj, do_unlink=True)
            elif isinstance(obj, bpy.types.Material):
                bpy.data.materials.remove(obj, do_unlink=True)
        except ReferenceError:
            pass
def __call__(self, owner=None):
    for obj in self.blender_objects:
        try:
            if isinstance(obj, bpy.types.Object):
                bpy.data.objects.remove(obj, do_unlink=True)
            elif isinstance(obj, bpy.types.Material):
                bpy.data.materials.remove(obj, do_unlink=True)
        except ReferenceError:
            pass