[[["容易理解","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-09-04 (世界標準時間)。"],[[["\u003cp\u003eDeleting a project in Google Distributed Cloud (GDC) air-gapped removes all resources within that project after a system precheck.\u003c/p\u003e\n"],["\u003cp\u003eProject deletion via the GDC console is not supported; use the \u003ccode\u003egdcloud\u003c/code\u003e CLI or Terraform instead.\u003c/p\u003e\n"],["\u003cp\u003eBefore deleting a project, you must have the Project Editor role and manually resolve any precheck errors reported by the system, such as remaining storage buckets or database clusters.\u003c/p\u003e\n"],["\u003cp\u003eIf a project fails the deletion precheck due to remaining VM image buckets in a shadow project, the Infrastructure Operator (IO) must delete these buckets.\u003c/p\u003e\n"],["\u003cp\u003eYou can delete a project by running \u003ccode\u003egdcloud projects delete PROJECT_ID\u003c/code\u003e using the \u003ccode\u003egdcloud\u003c/code\u003e CLI or by using \u003ccode\u003eterraform destroy -target kubernetes_manifest.project-create\u003c/code\u003e using Terraform.\u003c/p\u003e\n"]]],[],null,["# Delete a project to remove a group of resources within an organization. When\ndeleting a project in Google Distributed Cloud (GDC) air-gapped, the system first verifies\nthe project is eligible for deletion. If the system reports precheck errors, you\nmust manually fix the issues before you can initiate project deletion.\n\nBefore you begin\n----------------\n\nTo get the permissions needed to delete a project, ask your Organization\nIAM Admin to grant you the Project Editor role (`project-editor`).\n\nDelete a project and its resources\n----------------------------------\n\n| **Important:** Project deletion in the GDC console does not work, although the delete **Delete** button and corresponding deletion page are available. Delete a project using the supported workflows for gdcloud or Terraform.\n\nTo delete a project, complete the following steps: \n\n### gdcloud\n\n1. Ensure you have the gdcloud CLI installed. For more\n information, see the gdcloud CLI\n [Overview](/distributed-cloud/hosted/docs/latest/gdch/resources/gdcloud-overview#download_and_install_the)\n page.\n\n2. To delete the project, run:\n\n gdcloud projects delete \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e\n\n Replace \u003cvar translate=\"no\"\u003ePROJECT_ID\u003c/var\u003e with the unique identifier for\n the project to delete.\n\nIf the project deletion prechecks complete successfully, the\nGDC system begins deleting the project. If the\nprechecks don't complete successfully, precheck failures with corresponding\nerror codes are reported in the gdcloud CLI.\n\n### Terraform\n\n- To delete a project using Terraform, run:\n\n terraform destroy -target kubernetes_manifest.project-create\n\nYou must manually fix the issues reported before you can delete the project. See\nthe [Handle project deletion precheck failures](#handle-precheck-failures)\nsection for steps to manually fix precheck failures.\n\nHandle project deletion precheck failures\n-----------------------------------------\n\nIf the project deletion precheck task isn't successful, you are given a code\nthat maps to the issue. Locate the code in the following sections, and complete\nthe outlined steps to fix the issue.\n\n### OBJ-E0001: Buckets must be deleted in project\n\nThis error occurs when deleting a project if it has storage buckets remaining.\nYou must remove the buckets before the project can be deleted successfully.\n\nFollow the\n[Delete storage buckets](/distributed-cloud/hosted/docs/latest/gdch/platform/pa-user/delete-storage-buckets#cli)\nsection to manually delete your project's storage buckets.\n\n### DBS-E000X: Database clusters must be deleted in project\n\nThis error occurs when deleting a project if it has database clusters remaining.\n\n#### DBS-E0001: PostgreSQL database clusters must be deleted\n\nThis error indicates that you still have PostgreSQL database clusters remaining in the project you are trying to delete.\n\nYou must remove all of the PostgreSQL database clusters in your project before the project can be deleted successfully.\n\nFollow the\n[Delete database clusters](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/db-service#delete_database_clusters)\nsection to manually delete your project's database clusters.\n\n#### DBS-E0002: Oracle database clusters must be deleted\n\nThis error indicates that you still have Oracle database clusters remaining in the project you are trying to delete.\n\nYou must remove all of the Oracle database clusters in your project before the project can be deleted successfully.\n\nFollow the\n[Delete database clusters](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/db-service#delete_database_clusters)\nsection to manually delete your project's database clusters.\n\n#### DBS-E0003: AlloyDB Omni database clusters must be deleted\n\nThis error indicates that you still have AlloyDB Omni database clusters remaining in the project you are trying to delete.\n\nYou must remove all of the AlloyDB Omni database clusters in your project before the project can be deleted successfully.\n\nFollow the\n[Delete database clusters](/distributed-cloud/hosted/docs/latest/gdch/application/ao-user/db-service#delete_database_clusters)\nsection to manually delete your project's database clusters.\n\n### VMM0001: Buckets must be deleted in shadow project\n\nThis error occurs when deleting a project if it has VM image buckets remaining\nin an internal project named a *shadow project*. Because this is an internal\nproject, you must ask your Infrastructure Operator (IO) to complete this task.\n\nAsk your IO to complete the VMM-R0101 runbook to delete the VM image buckets\nremaining in the shadow project. Be sure to provide the shadow project name to\nthe IO, which follows the following format: \n\n \u003cvar translate=\"no\"\u003ePROJECT_NAME\u003c/var\u003e-vm-system\n\nReplace \u003cvar translate=\"no\"\u003ePROJECT_NAME\u003c/var\u003e with the name of the project you\nwant to delete."]]