The following procedure applies to tunnels connected to either Classic VPN or HA VPN gateways.
To delete an existing Cloud VPN tunnel, complete the following steps.
Permissions required for this task
To perform this task, you must have been granted the following permissions or the following IAM roles.
In the Google Cloud Console, go to the VPN page.
Select the checkbox next to the VPN tunnel that you want to remove.
At the top of the page, click Delete.
To confirm deletion, click Delete again.
In the following commands, replace the following:
PROJECT_ID: the ID of your project
TUNNEL_NAME: the name of your tunnel
REGION: the region where your tunnel resides
To delete the tunnel, follow these steps:
Identify the name and region of the VPN tunnel that you want to delete, and then use that information in the next step. To list all VPN tunnels in your project, run the following command:
gcloud compute vpn-tunnels list --project=PROJECT_ID
To delete the VPN tunnel, run the following command:
gcloud compute vpn-tunnels delete TUNNEL_NAME \ --region=REGION \ --project=PROJECT_ID
Make a DELETE request by using the
After deleting a VPN tunnel, consider the following:
Review your firewall rules and delete the rules that you no longer need.
If the tunnel used Classic VPN policy-based routing or was a route-based VPN, review the routes in your Google Cloud network. Delete any static routes that you no longer need.
If you used the Cloud Console to delete the tunnel for a Classic VPN gateway, static routes that were automatically created should already be removed. If you used the
gcloudcommand-line tool to remove the tunnel, or if you created custom static routes for it, delete those tunnels manually.
If no more tunnels exist for the associated VPN gateway, you can delete the VPN gateway.
- To view Cloud Logging and Monitoring information, see Viewing logs and metrics.
- To use high-availability and high-throughput scenarios or multiple subnet scenarios, see Advanced configurations.
- To help you solve common issues that you might encounter when using Cloud VPN, see Troubleshooting.