[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["難以理解","hardToUnderstand","thumb-down"],["資訊或程式碼範例有誤","incorrectInformationOrSampleCode","thumb-down"],["缺少我需要的資訊/範例","missingTheInformationSamplesINeed","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2025-08-18 (世界標準時間)。"],[],[],null,["# Troubleshooting project deletion\n\nThe following sections describe common errors that can block the deletion of\na project, and what you can do to resolve them. If you are having issues, try\nusing the Google Cloud CLI to shut down a project, and note any error message\nyou receive.\n\nLiens\n-----\n\nIf there is a [lien](/resource-manager/docs/project-liens) on a project, that project cannot be deleted\nuntil the lien is removed. If you have the `resourcemanager.projects.get`\npermission on the project, you can list the liens applied to a project with\nthe `liens list` gcloud CLI command.\n\nFor more information about liens, see\n[protecting projects with liens](/resource-manager/docs/project-liens).\n\nCloud Endpoints\n---------------\n\nCloud Endpoints are special resources that are considered child resources\nunder a project. This can block the deletion of a project where\nEndpoints exist.\n\nThe below example shows an attempt to delete a project using the\nGoogle Cloud CLI failing due to the existence of Endpoints under\nthe project: \n\n @cloudshell:~ ($project)$ gcloud projects delete $project\n Your project will be deleted.\n\n Do you want to continue (Y/n)? Y\n\n ERROR: (gcloud.projects.delete) FAILED_PRECONDITION: active child resource\n - '@type':type.googleapis.com/google.rpc.PreconditionFailure\n violations:\n - description: active child resource\n subject: services/$service\n - '@type':type.googleapis.com/google.rpc.ResourceInfo\n resourceName: projects/$project\n resourceType: PROJECT\n\nTo resolve this issue, [delete the Endpoints](/sdk/gcloud/reference/endpoints/services/delete)\nbefore you attempt to delete the project.\n\nFor more information about Endpoints, see the\n[Cloud Endpoints documentation](/endpoints/docs).\n\nShared Virtual Private Cloud\n----------------------------\n\nIf a project has shared Virtual Private Cloud (VPC) enabled or has service\nprojects attached, a [lien](/resource-manager/docs/project-liens) will block the deletion of the\nproject.\n\nFor more details and instructions on how to detach service projects and disable\nshared VPC, see [Deprovisioning shared VPC](/vpc/docs/deprovisioning-shared-vpc#deleting_projects)."]]