Search code examples
google-compute-engine

Removing or releasing a static IP on Google Compute Engine


I am trying to remove/delete a static IP address that I do not use any more and do not see a way to do this. The closest I could get from documentation is this page which says:

When an instance is stopped, you can still perform actions that can affect the stopped instance, such as:

  • [...]
  • Removing or setting a new static IP

P.S. Thanks for pointing me in the right direction. If anyone would like to take a quick glimpse on how to do this here is a short video on how and why it's a good practice to release the IP if not in use. Hope that helps.


Solution

  • Per the Google Cloud networking docs:

    Release a static external IP address

    gcloud compute addresses delete ADDRESS --project PROJECT --region REGION