DeleteProject
Deletes a project and cascade-deletes its nested entities, including environments, pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.
Operation description
If a project has no environments or only the default environment, the operation deletes the project and all its nested entities, including pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.
If a project contains multiple environments and you set the
forceparameter totrue, the operation deletes the project and all its nested entities. Ifforceis set tofalse, the operation fails. You must first delete the non-default environments.
When you use this operation to delete a project, deployed cloud resources such as functions and custom domain names are not deleted.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
devs:DeleteProject |
delete |
*All Resource
|
None | None |
Request syntax
DELETE /2023-07-14/projects/{name} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the project. |
demo-name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| force |
boolean |
No |
Specifies whether to forcibly delete a project that contains non-default environments. If you set this parameter to |
true |
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.