Deletes all logs that occupy your log storage.

Deleted logs cannot be restored. Before you call this operation to delete all logs and free up log storage, we recommend that you export and save your logs to your computer.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ModifyClearLogstoreStorage

The operation that you want to perform. Set the value to ModifyClearLogstoreStorage.

Lang String No zh

The language of the content within the request and response. Default value: zh. Valid values:

  • zh: Chinese
  • en: English
From String No sas

The ID of the request source. Set the value to sas.

Response parameters

Parameter Type Example Description
RequestId String DC84C453-8561-5EC4-B0E9-44E67ACCB5B5

The ID of the request, which is used to locate and troubleshoot issues.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ModifyClearLogstoreStorage
&Lang=zh
&From=sas
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyClearLogstoreStorageResponse>
    <RequestId>DC84C453-8561-5EC4-B0E9-44E67ACCB5B5</RequestId>
</ModifyClearLogstoreStorageResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "DC84C453-8561-5EC4-B0E9-44E67ACCB5B5"
}

Error codes

HTTP status code Error code Error message Description
500 ServerError ServerError The error message returned because a server error occurred.

For a list of error codes, visit the API Error Center.