code: def remove_xml_element_string(name, content):
      
      ET.register_namespace("", "http://soap.sforce.com/2006/04/metadata")
      tree = ET.fromstring(content)
      tree = remove_xml_element(name, tree)
      clean_content = ET.tostring(tree, encoding=UTF8)
      return clean_content
docs: Remove XML elements from a string