We have 2 ranges of external ip addresses. We cannot seem to find a way to get rid of them. All attempts to find the “range” in the portal have not been successful and so far have not found a command that works in the cli. Any suggestions?
Hello @crg711
Cloud Asset Inventory is the best tool for hard-to-find resources.
To better understand your issue:
When you say 2 ranges of external IP addresses, which service are you referring to? As external IP ranges may be related to multiple things on GCP.
If i go into IP addresses for the VPC, and go to external ip addresses. I see addresses in use, they are all contiguous. When i select them all and try to release, I get that error about reserved external range cannot be deleted individually. All of them are unused. I selected all of them and still no dice. I tried gcloud compute addresses delete RANGE_NAME and didnt work.
Can you confirm that you’re seeing something like this?

Sharing a screenshot from there would help us to better understand the context. Don’t forget to hide sensitive data before sharing any picture.
Can you tell us what do you see when you go to the Cloud Asset Inventory Resources Page and use the filter like this:

Try with all of the IP addresses that you have on the VPC view, one by one, and see if they’re linked to anything.
Hello @crg711,
Thanks for sharing this information. Here’s what you could try with gcloud:
- List all addresses within us-central1 region:
gcloud compute addresses list --filter=region:us-central1
- Describe each address to know more about them:
gcloud compute addresses describe address-name --region=us-central1
Both commands can give you more information. You may have to use the verbosity. You may have already done this, but the aim here is to troubleshoot why it’s happening.
Then try the delete method using:
gcloud compute addresses delete address-name1 address-name2 --region=us-central1
Try it with one address at a time and with all addresses at once.
Note that I’m assuming everything is in us-central1.
I suspect that these IPs are still associated with something even if it shows that they’re not. When it comes to Networking, it’s really common to have a “creation workflow” that will create resources in a specific order. Something similar once happened to me with a vague error message. I had to delete the related (even if not displayed) resource. It may be related to many things (Firewall, Load Balancer, Cloud NAT…).
That’s why using IaC (Terraform, Tofu) is very nice because it manages this lifecycle for you (allegedly).
If what I wrote above still does not help you, you have to dig into your GCP Project to find the related / parent resource that is blocking the deletion. Since the message is about “range”, I would investigate VPC and Connectors first.
Digging a little bit, I have found a tutorial for Google Cloud BYOIP Integration Overview (by byoip) that mentions the same issue about the range. The page explains what I was referring to before about linked resources that have to be deleted beforehand.
Hope this helps. Looking forward to know more about it.
no luck. I tried to get more data using the commands, but didn’t get anything. Trying to delete in any quantity still says they can’t be deleted.

