简体   繁体   English

无法删除谷歌云项目

[英]can't delete google cloud project

gcloud projects delete test-henx

When I try to delete test-henx project, error occurs like this.当我尝试删除test-henx项目时,会出现这样的错误。

Do you want to continue (Y/n)?  Y

ERROR: (gcloud.projects.delete) FAILED_PRECONDITION: Precondition check failed.
- '@type': type.googleapis.com/google.rpc.PreconditionFailure
  violations:
  - description: 'A lien to prevent deletion was placed on the project by [You cannot
      delete this project because it is linked with a Dialogflow agent. Please follow
      the link to Dialogflow and delete the agent: https://console.dialogflow.com/api-client/#/agent/07872f08-081d-4724-bd2e-b218061fbc5a].
      Remove the lien to allow deletion.'
    subject: liens/p417959660558-lcc0da1eb-7f47-4fb3-81a1-bcbf35011fad
    type: LIEN
- '@type': type.googleapis.com/google.rpc.Help
  links:
  - description: Troubleshooting project deletion
    url: https://cloud.google.com/resource-manager/docs/troubleshooting-project-deletion
- '@type': type.googleapis.com/google.rpc.ErrorInfo
  domain: cloudresourcemanager.googleapis.com
  reason: PROJECT_DELETE_LIEN

If I click the link https://console.dialogflow.com/api-client/#/agent/07872f08-081d-4724-bd2e-b218061fbc5a].如果我单击链接https://console.dialogflow.com/api-client/#/agent/07872f08-081d-4724-bd2e-b218061fbc5a]. , there is no agent and also this error: IAM permission 'dialogflow.agents.get' on 'projects/07872f08-081d-4724-bd2e-b218061fbc5a].' denied. ,没有代理,还有这个错误: IAM permission 'dialogflow.agents.get' on 'projects/07872f08-081d-4724-bd2e-b218061fbc5a].' denied. IAM permission 'dialogflow.agents.get' on 'projects/07872f08-081d-4724-bd2e-b218061fbc5a].' denied. shows up.出现。

Removing lien using gcloud shell also doesn't work.使用 gcloud shell 删除留置权也不起作用。

gcloud endpoints services delete 07872f08-081d-4724-bd2e-b218061fbc5a]
Are you sure? This will set the service configuration to be deleted, along with all of the associated consumer information. Note: This does not immediately delete the service configuration or data and can be undone using the undelete command
 for 30 days. Only after 30 days will the service be purged from the system.

Continue anyway (Y/n)?  Y

ERROR: (gcloud.endpoints.services.delete) User [wkdgusrhkd@gmail.com] does not have permission to access services instance [07872f08-081d-4724-bd2e-b218061fbc5a%5D] (or it may not exist): Service '07872f08-081d-4724-bd2e-b218061fbc5a]' not found or permission denied.

wkdgusrhkd@cloudshell:~ (test-henx)$ gcloud endpoints services delete 07872f08-081d-4724-bd2e-b218061fbc5a
Are you sure? This will set the service configuration to be deleted, along with all of the associated consumer information. Note: This does not immediately delete the service configuration or data and can be undone using the undelete command
 for 30 days. Only after 30 days will the service be purged from the system.

Continue anyway (Y/n)?  Y

ERROR: (gcloud.endpoints.services.delete) User [wkdgusrhkd@gmail.com] does not have permission to access services instance [07872f08-081d-4724-bd2e-b218061fbc5a] (or it may not exist): Service '07872f08-081d-4724-bd2e-b218061fbc5a' not found or permission denied.

List this way: gcloud alpha resource-manager liens list以这种方式列出: gcloud alpha resource-manager liens list

And to delete please use this command as an example:要删除,请使用此命令作为示例:

gcloud alpha resource-manager liens delete [LIEN_NAME]

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

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