lxml
Element.remove()
To remove an element child C from an Element instance E, use this method call.
C
Element
E
E.remove(C)
If C is not a child of E, this method will raise a ValueError exception.
ValueError