本文介绍了无法删除 Google Cloud Platform 项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图删除 GCP 项目,但不断弹出以下错误.

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

我删除了 DialogFlow 代理,重定向链接现在显示 No Agent 并将我重定向到 getStarted 页面

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

但 GCP 仍然显示相同的 Lien Origin 错误

But GCP still shows the same Lien Origin error

推荐答案

按照@yyyyahir 的建议,我在这里提交了一个问题:https://issuetracker.google.com/issues/162802477 这给了我两个选择.第二个是为我工作的.首先,发出命令 gcloud alpha resource-manager Liens list --project project_ID.请注意,它是 project_ID,而不是项目名称.例如:不是 sany-agent 而是 sany-agent-koajku.然后您应该会看到如下所示的内容:

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.

发出命令 gcloud alpha resource-manager Liens delete p8849062...0d88f4e77c,结果应该是这样的:

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

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

注意:我缩短了 UUID.

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.

这篇关于无法删除 Google Cloud Platform 项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-26 08:08