Disconnect networks

To remove a connection between a Virtual Private Cloud (VPC) network and a Cross-Cloud Interconnect connection, delete the related VLAN attachment (also known as an interconnectAttachment). After you delete the attachment, no traffic can travel between the VPC network and your remote cloud network. Also, Border Gateway Protocol (BGP) sessions that use the attachment go down.

Billing for the VLAN attachment stops when you delete it. However, you're still billed for the Cross-Cloud Interconnect connection, even if no traffic is passing through it.

Console

  1. In the Google Cloud console, go to the Cloud Interconnect Physical connections tab.

    Go to Physical connections

  2. For the Cloud Interconnect connection that you want to configure, click Configure.

  3. In the Router connections section, select the VLAN attachment to delete.

  4. Select the options button, and then click Delete.

  5. Click Delete to confirm that you want to delete the VLAN attachment.

gcloud

Use the gcloud compute interconnects attachments delete command:

gcloud compute interconnects attachments delete ATTACHMENT_NAME

Replace ATTACHMENT_NAME with the name of your VLAN attachment.

What's next