code: def delete_network_subname(self, sub_name):
          
          try:
              body = {}
              net_list = self.neutronclient.list_networks(body=body)
              for net in net_list:
                  if net.get('name').find(sub_name) != -1:
                      self.delete_network_all_subnets(net.get('net_id'))
          except Exception as exc:
              LOG.error("Failed to get network by subname %(name)s, "
                        "Exc %(exc)s",
                        {'name': sub_name, 'exc': str(exc)})
docs: Delete the network by part of its name, use with caution.