google-app-enginegoogle-cloud-platformmanaged-vm

google managedvm delete instance foverver


I recently changed the version of the app when deployment and everytime i execute gcloud compute instances list it will list out the old version, i tried manually deleting from the console and it works but after few minutes it will go back. I tried gcloud delete too gcloud compute instances delete instance --delete-disks all

Stopping doesnt help to, as it is a running instance would it charge me on its up time? How do i completely remove it (Did tried removing appengine version too but it keeps coming back)?


Solution

  • I've been having a lot of trouble with deploying (with versions) and deleting instances on Google Compute Engine's managed VMs. Here's a solution I found for deleting the default GCE managed VM:

    I was also taught how to stop deploying additional instances:

    And finally, this is how to delete the additional versions of an instance:

    Hope this helps!