Search code examples
google-app-enginegoogle-compute-engine

I can't delete google compute instance in "console"


I use node managed vm on google app engine. After I delete google compute instance at console.cloud.google.com , I see instance created automatically in "Operations". (This happens before, I used to delete instances at appengine.google.com which moved to "console" now.) How this happened? And How can I delete it?


Solution

  • You have to delete deployed version for Flexible VM. Since it's only one version, you have to deploy another one, for standard vm.

    Most simple solution would be to deploy an empty version, w/o any code, just one static file. To do that create following app.yaml:

    module: default
    runtime: python27
    api_version: '1.0'
    threadsafe: true
    handlers:
      - url: /
        static_files: index.html
        upload: index.html
    resources:
      cpu: 0.1
      memory_gb: 0.5
      disk_size_gb: 10
    

    put an empty index.html in same dir. And deploy it using:

    gcloud preview app deploy app.yaml
    

    After this, you'll be able to route all traffic to this dummy version, and then delete previous version deployed for Flexible VM.