Delete an Object

Goal: Delete a selected object from the tree.

Code:

ObjToDelete.Delete()