Klicken Sie auf das Kästchen neben dem VPN-Tunnel, den Sie entfernen möchten.
Klicken Sie oben auf der Seite auf Löschen.
Wenn Sie die Google Cloud Console zum Löschen eines VPN-Tunnels verwenden, werden auch alle mit dem VPN-Tunnel verknüpften BGP-Sitzungen (Border Gateway Protocol) gelöscht.Google Cloud
Klicken Sie zur Bestätigung noch einmal auf Löschen.
Optional: Rufen Sie die Detailseite des Cloud Routers auf, um zu bestätigen, dass die mit dem VPN-Tunnel verknüpften BGP-Sitzungen gelöscht wurden.
Weitere Informationen finden Sie unter Cloud Router-Details ansehen.
gcloud
Ersetzen Sie in den aufgeführten Befehlen Folgendes:
PROJECT_ID: die Projekt-ID
TUNNEL_NAME: der Name des Tunnels
REGION: die Region, in der sich der Tunnel befindet
Um den Tunnel zu löschen, führen Sie die folgenden Schritte aus:
Ermitteln Sie den Namen und die Region des VPN-Tunnels, der gelöscht werden soll. Diese Informationen werden im nächsten Schritt benötigt. Um alle VPN-Tunnel in Ihrem Projekt aufzulisten, führen Sie folgenden Befehl aus:
gcloud compute vpn-tunnels list
--project=PROJECT_ID
Um den VPN-Tunnel zu löschen, führen Sie folgenden Befehl aus:
Wenn Sie die Google Cloud CLI zum Löschen eines VPN-Tunnels verwenden, werden durch den Befehl nicht automatisch die für den VPN-Tunnel konfigurierten BGP-Sitzungen gelöscht.
Optional: Verwenden Sie den Befehl gcloud compute routers remove-bgp-peer, um die mit dem VPN-Tunnel verknüpften BGP-Sitzungen zu löschen. Eine Anleitung finden Sie unter BGP-Sitzung entfernen.
Zum Prüfen, ob die BGP-Sitzungen gelöscht wurden, rufen Sie die Detailseite des Cloud Routers in der Google Cloud Console auf oder führen Sie den Befehl gcloud compute routers describe für einen Cloud Router aus.
Eine Anleitung dazu finden Sie unter Details zu Cloud Router aufrufen.
API
Um den Tunnel zu löschen, führen Sie die folgenden Schritte aus:
Wenn Sie die Cloud VPN API zum Löschen eines VPN-Tunnels verwenden, löscht der API-Befehl keine BGP-Sitzungen, die mit dem VPN-Tunnel verknüpft sind.
Optional: Wenn Sie die mit dem VPN-Tunnel verknüpften BGP-Sitzungen löschen möchten, aktualisieren Sie das Feld bgpPeers[] mit der Methode routers.patch.
Eine Anleitung finden Sie unter BGP-Sitzung entfernen.
Zum Prüfen, ob Ihre BGP-Sitzungen gelöscht wurden, rufen Sie die Detailseite des Cloud Routers in der Google Cloud Console auf oder führen Sie den Befehl gcloud compute routers describe für einen Cloud Router aus.
Eine Anleitung dazu finden Sie unter Details zu Cloud Router aufrufen.
Empfohlene Nachbearbeitung
Erwägen Sie nach dem Löschen eines VPN-Tunnels Folgendes:
Prüfen Sie die Routen in Ihrem Google Cloud-Netzwerk, wenn der Tunnel ein klassisches VPN mit richtlinienbasiertem Routing verwendet hat oder wenn er ein routenbasiertes VPN war. Löschen Sie alle nicht mehr benötigten statischen Routen.
Wenn Sie den Tunnel für ein klassisches VPN-Gateway über die Google Cloud Console gelöscht haben, sollten automatisch erstellte statische Routen bereits entfernt worden sein. Wenn Sie die Google Cloud CLI zum Entfernen des Tunnels verwendet oder benutzerdefinierte statische Routen dafür erstellt haben, löschen Sie diese Tunnel manuell.
Wenn für das zugeordnete VPN-Gateway keine Tunnel mehr vorhanden sind, können Sie das VPN-Gateway löschen.
Nächste Schritte
Informationen zum Aufrufen von Cloud Logging und Monitoring finden Sie unter Logs und Messwerte ansehen.
Unter Erweiterte Konfigurationen finden Sie Szenarien mit Hochverfügbarkeit und hohem Durchsatz bzw. Szenarien mit mehreren Subnetzen.
Informationen zur Behebung häufiger Probleme bei der Verwendung von Cloud VPN finden Sie unter Fehlerbehebung.
[[["Leicht verständlich","easyToUnderstand","thumb-up"],["Mein Problem wurde gelöst","solvedMyProblem","thumb-up"],["Sonstiges","otherUp","thumb-up"]],[["Schwer verständlich","hardToUnderstand","thumb-down"],["Informationen oder Beispielcode falsch","incorrectInformationOrSampleCode","thumb-down"],["Benötigte Informationen/Beispiele nicht gefunden","missingTheInformationSamplesINeed","thumb-down"],["Problem mit der Übersetzung","translationIssue","thumb-down"],["Sonstiges","otherDown","thumb-down"]],["Zuletzt aktualisiert: 2025-08-12 (UTC)."],[],[],null,["# Delete a VPN tunnel\n\nThe following procedure applies to tunnels connected to either\nClassic VPN or HA VPN gateways.\n\nTo delete an existing Cloud VPN tunnel, complete the following steps.\n\n#### Permissions required for this task\n\nTo perform this task, you must have been granted the following permissions\n*or* the following IAM roles.\n\n**Permissions**\n\n- `compute.vpnGateways.get`\n- `compute.vpnGateways.list`\n- `compute.externalVpnGateways.get`\n- `compute.externalVpnGateways.list`\n- `compute.vpnGateways.create`\n- `compute.vpnGateways.delete`\n- `compute.vpnGateways.get`\n- `compute.vpnGateways.list`\n- `compute.vpnGateways.use`\n- `compute.vpnGateways.setLabels`\n- `compute.externalVpnGateways.create`\n- `compute.externalVpnGateways.delete`\n- `compute.externalVpnGateways.get`\n- `compute.externalVpnGateways.list`\n- `compute.externalVpnGateways.use`\n- `compute.externalVpnGateways.setLabels`\n\n**Roles**\n\n- `roles/compute.networkAdmin` \n\n### Console\n\nTo delete the tunnel, follow these steps:\n\n1. In the Google Cloud console, go to the **VPN** page.\n\n [Go to VPN](https://console.cloud.google.com/vpn/list?tab=tunnels)\n2. Select the checkbox next to the VPN tunnel that you want to remove.\n\n3. At the top of the page, click **Delete**.\n\n When you use the Google Cloud console to delete a VPN tunnel,\n Google Cloud also deletes any Border Gateway Protocol (BGP) sessions\n associated with the VPN tunnel.\n4. To confirm deletion, click **Delete** again.\n\n5. Optional: To confirm that the BGP sessions associated with the VPN\n tunnel are deleted, go to the Cloud Router details page.\n For more information, see\n [View Cloud Router details](/network-connectivity/docs/router/how-to/viewing-router-details).\n\n### gcloud\n\nIn the following commands, replace the following:\n\n- \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e: the ID of your project\n- \u003cvar translate=\"no\"\u003eTUNNEL_NAME\u003c/var\u003e: the name of your tunnel\n- \u003cvar translate=\"no\"\u003eREGION\u003c/var\u003e: the region where your tunnel resides\n\nTo delete the tunnel, follow these steps:\n\n1. Identify the name and region of the VPN tunnel that you want to delete,\n and then use that information in the next step. To list all VPN tunnels\n in your project, run the following command:\n\n ```\n gcloud compute vpn-tunnels list\n --project=PROJECT_ID\n ```\n2. To delete the VPN tunnel, run the following command:\n\n ```\n gcloud compute vpn-tunnels delete TUNNEL_NAME \\\n --region=REGION \\\n --project=PROJECT_ID\n ```\n\n When you use Google Cloud CLI to delete a VPN tunnel,\n the command does not automatically delete the BGP sessions that are\n configured for the VPN tunnel.\n3. Optional: To delete the BGP sessions associated with the VPN tunnel,\n use the `gcloud compute routers remove-bgp-peer`\n command. For instructions, see\n [Remove a BGP session](/network-connectivity/docs/router/how-to/disabling-removing-bgp#remove_a_bgp_session).\n\n To verify that the BGP sessions are deleted, go to the\n Cloud Router details page in the Google Cloud console, or run the\n `gcloud compute routers describe` command for a\n Cloud Router.\n For instructions, see\n [View Cloud Router details](/network-connectivity/docs/router/how-to/viewing-router-details).\n\n### API\n\nTo delete the tunnel, follow these steps:\n\n1. Make a DELETE request by using the\n [`vpnTunnels.delete`](/compute/docs/reference/rest/v1/vpnTunnels/delete)\n method:\n\n ```\n DELETE https://compute.googleapis.com/compute/v1/projects/PROJECT_ID/regions/REGION/vpnTunnels/TUNNEL_NAME\n ```\n\n When you use the Cloud VPN API to delete a VPN tunnel,\n the API command does not delete any BGP sessions that are associated with the\n VPN tunnel.\n2. Optional: To delete the BGP sessions associated with\n the VPN tunnel, use the\n [`routers.patch`](/compute/docs/reference/rest/v1/routers/patch)\n method to update the `bgpPeers[]` field.\n For instructions, see\n [Remove a BGP session](/network-connectivity/docs/router/how-to/disabling-removing-bgp#remove_a_bgp_session).\n\n To verify that your BGP sessions are deleted, go to the\n Cloud Router details page in the Google Cloud console, or run the\n `gcloud compute routers describe` command for a\n Cloud Router.\n For instructions, see\n [View Cloud Router details](/network-connectivity/docs/router/how-to/viewing-router-details).\n\n### Recommended follow-up\n\nAfter deleting a VPN tunnel, consider the following:\n\n- Review your firewall rules and [delete the\n rules](/vpc/docs/using-firewalls#deleting_firewall_rules) that you no longer\n need.\n\n- If the tunnel used Classic VPN policy-based routing or was\n a route-based VPN, review the routes in your Google Cloud\n network. [Delete any static routes](/vpc/docs/using-routes#deletingaroute)\n that you no longer need.\n\n- If you used the Google Cloud console to delete the tunnel for a\n Classic VPN gateway, static routes that\n were automatically created should already be removed. If you used the\n Google Cloud CLI to remove the tunnel, or if you created custom static routes\n for it, delete those tunnels manually.\n\n- If no more tunnels exist for the associated VPN gateway, you can [delete the\n VPN gateway](/network-connectivity/docs/vpn/how-to/deleting-a-gateway).\n\nWhat's next\n-----------\n\n- To view Cloud Logging and Monitoring information, see [View logs and metrics](/network-connectivity/docs/vpn/how-to/viewing-logs-metrics).\n- To use high-availability and high-throughput scenarios or multiple subnet scenarios, see [Advanced configurations](/network-connectivity/docs/vpn/concepts/advanced).\n- To help you solve common issues that you might encounter when using Cloud VPN, see [Troubleshooting](/network-connectivity/docs/vpn/support/troubleshooting)."]]