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! Go to 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
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
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.