Marks the Project identified by the specified project_id
(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 GetProject, and the Project remains
visible to ListProjects. However, you cannot update the project. After
the deletion completes, the Project is not retrievable by the GetProject
and ListProjects methods. The caller must have delete permissions for
this Project.
Arguments
projectId
string
The Project ID (for example, foo-bar-123
). Required.
Raised exceptions
ConnectionError
HttpError
TimeoutError
TypeError
ValueError
Response
If successful, the response will be empty.
Subworkflow snippet
Some fields might be optional or required. To identify required fields, refer to the API documentation .
YAML
- delete : call : googleapis.cloudresourcemanager.v1.projects.delete args : projectId : ... result : deleteResult
JSON
[ { "delete" : { "call" : "googleapis.cloudresourcemanager.v1.projects.delete" , "args" : { "projectId" : "..." }, "result" : "deleteResult" } } ]

