我正在尝试删除GCP项目,但每次收到一条消息说:
Error
The project has a lien against it.
Tracking Number:
有人可以提供建议吗?
答案 0 :(得分:18)
我通过删除与项目关联的Dialogflow代理修复了此问题:
答案 1 :(得分:6)
如先前解决方案所述,将Dialogflow关联的代理与项目删除。
如果仍然失败,则可以按以下方式手动删除项目留置权:
@cloudshell:~ ($project)$gcloud config set project [PROJECT_ID]
@cloudshell:~ ($project)$ gcloud projects delete [PROJECT_ID]
Your project will be deleted.
Do you want to continue (Y/n)? Y
ERROR: (gcloud.projects.delete) FAILED_PRECONDITION: active child resource
- '@type':type.googleapis.com/google.rpc.PreconditionFailure violations:
description: active child resource
subject: services/$service
- '@type':type.googleapis.com/google.rpc.ResourceInfo
resourceName: projects/$project
resourceType: PROJECT
@cloudshell:~ ($project)$gcloud alpha resource-manager liens list
NAME ORIGIN REASON
p1061081023732-l3d8032b3-ea2c-4683-ad48-5ca23ddd00e7 user@example.com testing
@cloudshell:~ ($project)$gcloud alpha resource-manager liens delete [LIEN_NAME]
@cloudshell:~ ($project)$ gcloud projects delete [PROJECT_ID]
该项目应立即删除。