Reputation: 143
I was trying to delete a config file from the google api gateway service from the UI and also from the command line. But they are saying target config file is in use but I couldn't find it anywhere neither in UI nor in the result of gcloud command for list of api gateways. Now it is not letting me create it so my process is failing for no reason.
See the below picture. It is giving the following error while trying to delete config. But there is no such gateways which are using this config.
Any idea what might go wrong for my case?
Upvotes: 2
Views: 1227
Reputation: 452
According to this, you have first to create a new config file for your gateway or delete the gateway itself before being able to delete the existing config file in use.
Once you complete one of the options above, you should be able to delete your config file with:
gcloud api-gateway api-configs delete YOUR_CONFIG_ID --api=YOUR_API_ID --project=YOUR_PROJECT_ID
Upvotes: 2