Deletes a specified project.
Operation description
Operation description
The Host consists of the project name and the Simple Log Service endpoint. You must specify the project name in the Host.
An AccessKey pair has been created and obtained. For more information, see AccessKey pair.
An Alibaba Cloud account AccessKey pair has permissions to call all API operations. Using an Alibaba Cloud account to call API operations is a high-risk operation. We recommend that you create and use a RAM user to call API operations or perform routine O&M. The RAM user must have the required permissions on Simple Log Service resources. For more information, see Create a RAM user and authorize the RAM user.
After you delete a project, all log data and configuration information managed by the project are permanently released and cannot be recovered. Proceed with caution before deleting a project to avoid data loss.
Authentication resources
The following table describes the authorization information corresponding to this API operation. You can add the information to the Action element of a RAM access policy statement to grant a Resource Access Management (RAM) user or RAM role the permissions to invoke this API operation.
| Action | Resource |
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 project name. |
ali-project-test |
| forceDelete |
boolean |
No |
Sample request:
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.
Sample response:
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.