简体   繁体   English

由于链接到 Dialogflow 代理,无法删除 Google Cloud Platform 项目

[英]Unable to delete Google Cloud Platform Project due to linked to a Dialogflow agent

I was trying to delete a GCP Project but the following error keeps popping up.我试图删除 GCP 项目,但不断弹出以下错误。

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我删除了 DialogFlow 代理,重定向链接现在显示无代理并将我重定向到getStarted页面

But GCP still shows the same Lien Origin error.但是 GCP 仍然显示相同的 Lien Origin 错误。

Can anyone help me to resolve this error?谁能帮我解决这个错误?

Thanks.谢谢。

As suggested by @yyyyahir, I filed an issue here: https://issuetracker.google.com/issues/162802477 which gave me two options.正如@yyyyahir 所建议的,我在这里提出了一个问题: https://issuetracker.google.com/issues/162802477这给了我两个选择。 The second one is the one working for me.第二个是为我工作的那个。 First, issue the command gcloud alpha resource-manager liens list --project project_ID .首先,发出命令gcloud alpha resource-manager liens list --project project_ID Note it is project_ID , not the project name.请注意,它是project_ID ,而不是项目名称。 For example: not sany-agent but sany-agent-koajku .例如:不是sany-agent而是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:发出命令gcloud alpha resource-manager liens delete p8849062...0d88f4e77c应该是这样的:

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

NOTE: I shorten the UUID.注意:我缩短了 UUID。

After that, go ahead and shut down the project.之后,go 提前关闭项目。 You should able to do that as the lien have been removed.您应该能够做到这一点,因为留置权已被移除。

GCP has a management feature called liens that protect projects from deletion. GCP 有一个称为留置权的管理功能,可以保护项目不被删除。

You can check the lien in your project with the following gcloud command:您可以使用以下 gcloud 命令检查项目中的留置权:

gcloud alpha resource-manager liens list

In your particular case, it might be related to Dialogflow project having more than one owner.在您的特定情况下,它可能与拥有多个所有者的 Dialogflow 项目有关。 This operation requires that other owners are removed from your project .此操作需要 从您的项目中删除其他所有者

The given answer didn't work for me.给定的答案对我不起作用。 Delete command is changed a little bit now.删除命令现在有点改变。 Here is what I did to solve the issue:这是我为解决问题所做的工作:

  1. Open Cloud Shell开云Shell

  2. Run the below command and replace with the actual project id运行以下命令并替换为实际的项目 id

     gcloud config set project project-id gcloud 配置设置项目项目 ID
  3. Run the below command to list all liens运行以下命令列出所有留置权

    gcloud alpha resource-manager liens list gcloud alpha 资源管理器留置权列表
  4. Run the below command to delete the lien by entering the desired lien-id which you received in step 3.运行以下命令,通过输入您在步骤 3 中收到的所需留置权 ID 来删除留置权。

     gcloud alpha resource-manager liens delete liens/lien-id gcloud alpha 资源管理器留置权删除留置权/留置权 ID

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM