Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Delete App Engine Service

I am trying to delete an App Instance and the button is disabled.   The  message says :"... dispatch rule in place, please remove in order to delete"  or something like that.       So sounds straightforward  except!   I don't see any sort of dispatch file or anyway to remove it.

I didn't set this up.  It is a legacy app that needs to be shutdown as it is occurring billing for years with zero usage.   

Anyway to force delete these app engine services?

Solved Solved
0 2 3,937
1 ACCEPTED SOLUTION

You have to deploy an empty 'dispatch.yaml' file

- create an empty file in your application root folder on your machine, name it 'dispatch.yaml', then run

 gcloud app deploy dispatch.yaml

This will overwrite the existing dispatch.yaml and since it's empty, it essentially clears any dispatch rules. You'll then be able to delete the App

 

 ..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine

 

View solution in original post

2 REPLIES 2

You have to deploy an empty 'dispatch.yaml' file

- create an empty file in your application root folder on your machine, name it 'dispatch.yaml', then run

 gcloud app deploy dispatch.yaml

This will overwrite the existing dispatch.yaml and since it's empty, it essentially clears any dispatch rules. You'll then be able to delete the App

 

 ..... NoCommandLine ......
 https://nocommandline.com
A GUI for Google App Engine

 

For others  who are not GCP users and need to know the full answer:
Once you have gcloud CLI installed.   You'll need to Login

gcloud auth login

Then get find your project using
gcloud  projects list

then set your config to the project you need
gcloud config set project `YOUR_PROJECT_ID`

now you can deploy a blank  dispatch.yaml file. to erase it from GCP.