For what I understood, I know that an object can be deleted by running
bpy.ops.object.delete() when that object is active.
But how can I verify that the object is deleted?
o = bpy.context.active_object # object I want to delete print(is_deleted(o)) # False bpy.ops.object.delete() print(is_deleted(o)) # True
What should I write in the function