Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to delete Google Cloud Platform Project

I was trying to delete a GCP Project but the following error keeps popping up.

Lien origin
You cannot delete this project because it is linked with a Dialogflow agent. 
Please follow the link to Dialogflow and delete the agent: Redirect Link

Description
Deletion blocked by Dialogflow. Remove lien

I deleted the DialogFlow Agent and the redirect link now shows No Agent and redirects me to the getStarted Page

But GCP still shows the same Lien Origin error.

Can anyone help me to resolve this error?

Thanks.

like image 481
prateek Avatar asked Jun 23 '20 06:06

prateek


People also ask

How do I delete GCP project immediately?

In the File menu, select Delete Project. All project source code and data will be deleted after you confirm the deletion.

How many days Google take to remove a project completely after shutdown?

All project data associated with Google Cloud and Google APIs services becomes inaccessible. After a 30-day waiting period, the project and associated data are permanently deleted from the console.


1 Answers

As suggested by @yyyyahir, I filed an issue here: https://issuetracker.google.com/issues/162802477 which gave me two options. The second one is the one working for me. First, issue the command gcloud alpha resource-manager liens list --project project_ID. Note it is project_ID, not the project name. For example: not sany-agent but sany-agent-koajku. Then you should see something like below:

NAME                                     ORIGIN                                                                                                                                                                         REASON
p8849062...0d88f4e77c  You cannot delete ... a Dialogflow agent. Please follow the link to Dialogflow and delete the agent: https://console.dialogflow.com/api-client/#/agent/63e6667c-...-cbfa0e8cd4d7/  Deletion blocked by Dialogflow.

Issue the command gcloud alpha resource-manager liens delete p8849062...0d88f4e77c which should result something like this:

Deleted [liens/p88490624627...50d88f4e77c].

NOTE: I shorten the UUID.

After that, go ahead and shut down the project. You should able to do that as the lien have been removed.

like image 198
Sany Liew Avatar answered Nov 11 '22 04:11

Sany Liew