0
votes

I would like to know how to remove the custom domain associated to my GCP app engine project.

The GCP console does not allow it. The message says: "You do not have permission to remove this domain"

I tried setting an IAM role with access for my email but it does not work either. I am the project owner. And also the domain owner in Google Domains

Thanks in advance enter image description here

2
Thanks for the update. In case it helps: I tried via domain verification. I got a message saying the domain was already verified. Then I proceeded to delete the subdomain without issues. It works fine now. - ipegasus

2 Answers

1
votes

Try deleting it from the command line, and you will see a detailed error:

gcloud app domain-mappings delete '<your-domain>' --verbosity=debug

Here are the docs for the domain-mappings delete command.

1
votes

If after using the command “gcloud”, you still have issues to delete the custom domain, another thing to consider is that you need to be logged in with the domain owner account, which might not necessarily be the same as the project owners. This is documented in the App Engine Admin API article, which states that a user must be authorized to administer the associated domain in order to delete a DomainMapping resource. Confirm that the account you were logged in with was the appropriate one.