Reputation: 775
I cannot stop or delete versions of a project created as it was created as a flexible environment within the EU. I understand the restriction by region but cannot work out why it cannot be removed.
jamie@dartmoor-1320:~$ gcloud preview app versions delete 20160607t131220
Deleting the following versions:
- dartmoor-1320/default/20160607t131220
Do you want to continue (Y/n)?
Deleting [default/20160607t131220]...failed.
ERROR: (gcloud.preview.app.versions.delete) Issue deleting version: [default/20160607t131220]
[default/20160607t131220]: Error Response: [13] Managed VMs can not be hosted in the application's region. (e~))
The GUI fails too but with a non descript error message.
Upvotes: 19
Views: 17119
Reputation: 10891
The version you are trying to delete may have some errors with it.
What worked for me was uploading a new version that I knew doesn't have errors and migrating to it. After that, I was able to delete the un-deletable version.
Upvotes: 0
Reputation: 35961
You have to have at least one version for the default module. That's the reason why it doesn't allow you to delete it.
You need to deploy a new version, it can be a Flexible VM (deployed to another region in your situation), or Standard VM.
As a workaround, when you don't have any app to replace it right now, you can deploy an empty app instead. You have to create an app.yaml
:
---
runtime: python38
handlers:
- url: /
script: auto
and deploy it using:
gcloud app deploy app.yaml
As your app.yaml
doesn't have any script to execute, you'll not be charged for any instance.
Upvotes: 28
Reputation: 85
If you want to stop app engine you can disable it App Engine -> Settings -> Disable application
This will only stop traffic to you Application after that you can remove the instances.
Upvotes: 6