Reputation: 1
I can not delete my project on Google Cloud Platform
with error
Not enough permissions.
I tried to find the owner of the project through the command:
gcloud projects get-iam-policy [PROJECT-ID]
But it still get error
ERROR: (gcloud.projects.get-iam-policy) User [[email protected]] does not have permission to access project [PROJECT-ID: getIamPolicy] (or it may not exist): The caller does not have permission
NOTE: The PROJECT-ID and [email protected] are not real
How to solve?
Upvotes: 0
Views: 2653
Reputation: 76569
as the documentation states, you need to have the resourcemanager.projects.delete
role assigned in Cloud IAM (while not being the project's owner)... then executing gcloud projects delete
would flag that project for shutdown and it would be deleted after a while. just as you would need role resourcemanager.projects.getIamPolicy
in order to list the project's IAM
policies.
Upvotes: 2