Goal: Delete a selected object from the Mechanical tree.
Code:
ObjToDelete.Delete()
Release 18.2 - © ANSYS, Inc. All rights reserved.