I am trying to delete a GCP project, but each time I get a message that says:
Error
The project has a lien against it.
Tracking Number:
Can anyone advise?
Pay the contractor And paying the contractor is the fastest way to remove a lien.
I fixed this problem by deleting a Dialogflow agent associated with the project:
Delete Dialogflow associated agent with the project as explained on previous solution.
If still failed, you could delete the project liens manually as follows:
@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 [email protected] testing
@cloudshell:~ ($project)$gcloud alpha resource-manager liens delete [LIEN_NAME]
@cloudshell:~ ($project)$ gcloud projects delete [PROJECT_ID]
The project should be deleted right now.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With