Marks the Project identified by the specified projectId (for example, my-project-123) for deletion. This method will only affect the Project if it has a lifecycle state of ACTIVE.
This method changes the Project's lifecycle state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified time, at which point the Project is no longer accessible.
Until the deletion completes, you can check the lifecycle state checked by retrieving the Project with projects.get, and the Project remains visible to projects.list. However, you cannot update the project.
After the deletion completes, the Project is not retrievable by the projects.get and projects.list methods.
The caller must have delete permissions for this Project.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-11 UTC."],[],[],null,["# Method: projects.delete\n\n- [HTTP request](#body.HTTP_TEMPLATE)\n- [Path parameters](#body.PATH_PARAMETERS)\n- [Request body](#body.request_body)\n- [Response body](#body.response_body)\n- [Authorization scopes](#body.aspect)\n- [Try it!](#try-it)\n\nMarks the Project identified by the specified `projectId` (for example, `my-project-123`) for deletion. This method will only affect the Project if it has a lifecycle state of [ACTIVE](/resource-manager/reference/rest/v1/projects#LifecycleState.ENUM_VALUES.ACTIVE).\n\nThis method changes the Project's lifecycle state from [ACTIVE](/resource-manager/reference/rest/v1/projects#LifecycleState.ENUM_VALUES.ACTIVE) to [DELETE_REQUESTED](/resource-manager/reference/rest/v1/projects#LifecycleState.ENUM_VALUES.DELETE_REQUESTED). The deletion starts at an unspecified time, at which point the Project is no longer accessible.\n\nUntil the deletion completes, you can check the lifecycle state checked by retrieving the Project with [projects.get](/resource-manager/reference/rest/v1/projects/get#google.cloudresourcemanager.v1.Projects.GetProject), and the Project remains visible to [projects.list](/resource-manager/reference/rest/v1/projects/list#google.cloudresourcemanager.v1.Projects.ListProjects). However, you cannot update the project.\n\nAfter the deletion completes, the Project is not retrievable by the [projects.get](/resource-manager/reference/rest/v1/projects/get#google.cloudresourcemanager.v1.Projects.GetProject) and [projects.list](/resource-manager/reference/rest/v1/projects/list#google.cloudresourcemanager.v1.Projects.ListProjects) methods.\n\nThe caller must have delete permissions for this Project.\n\n### HTTP request\n\n`DELETE https://cloudresourcemanager.googleapis.com/v1/projects/{projectId}`\n\nThe URL uses [gRPC Transcoding](https://google.aip.dev/127) syntax.\n\n### Path parameters\n\n### Request body\n\nThe request body must be empty.\n\n### Response body\n\nIf successful, the response body is an empty JSON object.\n\n### Authorization scopes\n\nRequires one of the following OAuth scopes:\n\n- `https://www.googleapis.com/auth/cloud-platform`\n- `https://www.googleapis.com/auth/cloudplatformprojects`\n\nFor more information, see the [Authentication Overview](/docs/authentication#authorization-gcp)."]]