4
votes

I have an old Google Cloud Project that i just can't delete.

When I do it via website i get an "Project Service Unknown error Tracking number: 342342354345345345"

When i do it via CLI with command:

gcloud projects delete "PROJECT"

I get an error:

ERROR: (gcloud.projects.delete) FAILED_PRECONDITION: Precondition check failed.

'@type': type.googleapis.com/google.rpc.ResourceInfo

resourceName: projects/77777777777777

resourceType: PROJECT

What else can i do?

2
For the Console error, you will need Google Cloud Support. For the CLI error, this looks like you are using an old version of gcloud. Run gcloud components update and try again. This update command requires command elevation on Windows.John Hanley
Have you been using Cloud Endpoints Services by any chance?ericcco
@JohnHanley Did the update, opened cmd with admin rights and the same error was thereFilipM
@eespinola Yes! That did it! deleted my Endpoint via "gcloud endpoints services delete service-name" and then it deleted sucessfully! Thanks!FilipM
I am glad that this was your issue. I wrote the solution as an answer, and I would appreciate if you can accept it in order to get more visibility to other users. Thanks! :)ericcco

2 Answers

4
votes

In case you are using Cloud Endpoints services in your project, you should delete them first and try to delete the project again by using the UI or the following gcloud command:

gcloud projects delete "PROJECT"
0
votes

In case that is not too late this worked for me:

  1. see your project retentions: gcloud alpha resource-manager liens list
  2. if you have any retention delete: gcloud alpha resource-manager liens delete "name"
  3. delete your project gcloud projects delete "project"

more info about gcp project retentions here