Listing and deleting routers

List all the Cloud Routers in your project or delete the ones that you don't use.

Listing routers

To list all the Cloud Routers in a project, complete the following steps:

Console


Go to the Cloud Router page in the Google Cloud Console.

Cloud Router list

gcloud


gcloud compute --project [PROJECT_ID] routers list
NAME      REGION     NETWORK
my-router asia-east1 my-network

To restrict the list to only one region, specify --region.

Deleting routers

Before you can delete a router, check that it's not being used by another resource, such as a Cloud VPN tunnel or an interconnect attachment (VLAN). You must delete the associated resource before you can delete the router.

You're not required to remove BGP sessions before deleting the router.

Console


  1. Go to the Cloud Router list.
  2. Select the checkbox next to the Cloud Router that you want to delete.
  3. Click Delete.

gcloud


gcloud compute --project [PROJECT_ID] routers delete my-router \
    --region asia-east1
Deleted [https://www.googleapis.com/compute/v1/projects/[PROJECT_ID]/regions/asia-east1/routers/my-router].