DeleteProject
Deletes a project and cascades the deletion to all its related entities, including environments, pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.
Operation description
If a project contains no environments or only the default environment, this operation deletes the project and all its related entities. These entities include pipeline triggers, pipeline trigger records, pipeline templates, and pipelines.
If a project has multiple environments and the
forceparameter is set totrue, this operation forcibly deletes the project and all entities in every environment. Ifforceis set tofalseor is omitted, the operation fails with an exception. You must first delete the additional environments.
This operation does not delete cloud resources deployed within the project, such as functions and custom domain names.
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 project name. |
demo-name |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| force |
boolean |
No |
Specifies whether to forcibly delete a project that contains multiple environments. If this parameter is set 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.