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
Parameters | |
---|---|
projectId |
The Project ID (for example, |
Raised exceptions
Exceptions | |
---|---|
ConnectionError |
In case of a network problem (such as DNS failure or refused connection). |
HttpError |
If the response status is >= 400 (excluding 429 and 503). |
TimeoutError |
If a long-running operation takes longer to finish than the specified timeout limit. |
TypeError |
If an operation or function receives an argument of the wrong type. |
ValueError |
If an operation or function receives an argument of the right type but an inappropriate value. For example, a negative timeout. |
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" } } ]