Deletes a specified project.
Operation description
Description
The Host parameter consists of a project name and a Simple Log Service Endpoint. You must specify the project name in the Host parameter.
You must create and obtain an AccessKey pair. For more information, see AccessKey pair.
An AccessKey pair for an Alibaba Cloud account has permissions on all API operations, which poses a high security threat. We recommend that you use a RAM user to call API operations or perform O&M. The RAM user must have the permissions to operate on Simple Log Service resources. For more information, see Create and authorize a RAM user.
When you delete a project, all its log data and configurations are released and cannot be recovered. To prevent data loss, confirm the action before you delete the project.
Authorization
The following table lists the authorization information for this API operation. To grant a RAM user or RAM role the permissions to call this API operation, add this information to the Action element of a RAM access policy statement.
| Action | Resource description in an authorization policy |
log:DeleteProject | acs:log:{#regionId}:{#accountId}:project/{#ProjectName} |
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
log:DeleteProject |
delete |
*Project
|
|
None |
Request syntax
DELETE / HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| project |
string |
Yes |
The name of the project. |
ali-project-test |
| forceDelete |
boolean |
No |
Request example:
DELETE / HTTP/1.1 Host:ali-project-test.cn-hangzhou.log.aliyuncs.com Content-Type:application/json
Common request parameters
Response elements
|
Element |
Type |
Description |
Example |
None defined.
Response example:
HTTP/1.1 200 OK
Examples
Success response
JSON format
{}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.