code: def delete_vnet(access_token, subscription_id, resource_group, name):
      '''Delete a virtual network.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          resource_group (str): Azure resource group name.
          name (str): Name of the VNet.
  
      Returns:
          HTTP response. VNet JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', resource_group,
                          '/providers/Microsoft.Network/virtualNetworks/', name,
                          '?api-version=', NETWORK_API])
      return do_delete(endpoint, access_tokenf delete_vnet(access_token, subscription_id, resource_group, name):
      '''Delete a virtual network.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          resource_group (str): Azure resource group name.
          name (str): Name of the VNet.
  
      Returns:
          HTTP response. VNet JSON body.
      '''
      endpoint = ''.join([get_rm_endpoint(),
                          '/subscriptions/', subscription_id,
                          '/resourceGroups/', resource_group,
                          '/providers/Microsoft.Network/virtualNetworks/', name,
                          '?api-version=', NETWORK_API])
      return do_delete(endpoint, access_token)
docs: Delete a virtual network.
  
      Args:
          access_token (str): A valid Azure authentication token.
          subscription_id (str): Azure subscription id.
          resource_group (str): Azure resource group name.
          name (str): Name of the VNet.
  
      Returns:
          HTTP response. VNet JSON body.