I have searched through the documentation and cannot seem to find a way to use Python to remove and object from a layer.
for item in spline_id:
layer = doc.GetLayerObjectRoot().GetDown()
if layer.GetName() == "nd":
print layer.GetName()
layer.SetLayerObject(None)
This is the code I am using. I am trying to remove the object from the nd layer. Can you help? Thanks.