code: def remove_xml_element_file(name, path):
      
      ET.register_namespace("", "http://soap.sforce.com/2006/04/metadata")
      tree = elementtree_parse_file(path)
      tree = remove_xml_element(name, tree)
      return tree.write(path, encoding=UTF8, xml_declaration=True)
docs: Remove XML elements from a single file