code: def removeXmlElement(name, directory, file_pattern, logger=None):
      
      for path, dirs, files in os.walk(os.path.abspath(directory)):
          for filename in fnmatch.filter(files, file_pattern):
              filepath = os.path.join(path, filename)
              remove_xml_element_file(name, filepath)
docs: Recursively walk a directory and remove XML elements