title: Can't shutdown app engine version. Keeps billing
body: <p>I am not able to stop and consequently delete a app engine version. I have 3 different versions at the moment, under the same default service:</p>
  
  <ol>
  <li><code>gappa-v1</code>, which is currently serving 100% of the traffic</li>
  <li><code>mg-v1</code>, which is currently stopped</li>
  <li><code>20170223t163224</code></li>
  </ol>
  
  <p>I am able to stop, restart and delete all the versions but the <code>20170223t163224</code> version.
  I have tried everything, both from the Google Cloud Console, and the <code>gcloud</code> command-line tool.
  Interacting from the Google Cloud Console is kinda useless because it gives me no feedback on the error, but just a generic <strong>Failed to stop version</strong> on a stop attemp or <strong>The version could not be deleted</strong> on a delete attempt.</p>
  
  <p>When interacting with the <code>gcloud</code> command line tool, I have tried:</p>
  
  <pre><code>$&gt; gcloud app versions stop `20170223t163224`
  $&gt; ERROR: (gcloud.app.versions.stop) INTERNAL: This flexible version cannot be modified, it can only be deleted.
  </code></pre>
  
  <p>Then if I try to delete it:</p>
  
  <pre><code>$&gt; gcloud app versions delete `20170223t163224`
  $&gt; [default/20170223t163224]: Error Response: [13] Deployment Manager operation failed, name: operation-1488895382516-54a247861f121-d456a139-0b1e3fc6, error: [{"code":"RESOURCE_ERROR","locati
  on":"/deployments/aef-default-20170223t163224/resources/aef-default-20170223t163224-00","message":"{\"ResourceType\":\"compute.beta.regionInstanceGroupManager\",\"ResourceErrorCode\":\"400
  \",\"ResourceErrorMessage\":{\"code\":400,\"errors\":[{\"domain\":\"global\",\"message\":\"The instance_group_manager resource 'aef-default-20170223t163224-00' is already being used by 'ae
  f-default-20170223t163224'\",\"reason\":\"resourceInUseByAnotherResource\"}],\"message\":\"The instance_group_manager resource 'aef-default-20170223t163224-00' is already being used by 'ae
  f-default-20170223t163224'\",\"statusMessage\":\"Bad Request\",\"requestPath\":\"https://www.googleapis.com/compute/beta/projects/MYAPPID/regions/us-central1/instanceGroupMana
  gers/aef-default-20170223t163224-00\"}}"}]
  </code></pre>
  
  <p>Somewhere (I can't find where in this moment), the docs says I can't delete a version until traffic is allocated to it. So, I made sure that the version has no traffic allocated. Infact the app engine console shows the following:</p>
  
  <p><a href="https://i.stack.imgur.com/PshrO.png" rel="noreferrer"><img src="https://i.stack.imgur.com/PshrO.png" alt="Traffic allocation and instances"></a></p>
  
  <p>I have also tried to delete the single version instances using `gcloud app instances delete INSTANCE_ID --service=default --version=20170223t163224. This command didn't return any error, but had no effect, there are still 2 instances.</p>
  
  <p>I also tried to override the version deploying a new, basically empty app (hello world, from <a href="https://github.com/GoogleCloudPlatform/nodejs-docs-samples" rel="noreferrer">the google tutorial</a>), but it didn't allow me to deploy it.</p>
  
  <p><strong>The biggest problem</strong> is that i am still getting charged for this version, as it is still there, serving and with 2 instances.</p>
  
  <p>I am currently working with Google App Engine Flexible Environment and NodeJS.</p>