Resets an element. This function removes all subelements, clears all attributes, and sets the text and tail attributes to None.
xml.etree.ElementTree/Element.clear
Element.clear