DeleteMultipleObjects
Description
DeleteMultipleObjects operation supports users to delete multiple objects in the same bucket through an HTTP request.
Request Method
POST
Request Path
/apsara/route/OneRouter/DeleteMultipleObjects
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
Encoding-type | BODY | string | No | url | Key uses UTF-8 characters. If the Key contains control characters that are not supported by the XML 1.0 standard, you can encode the Key in the returned result by specifying the Encoding-type. optional value: url |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
Content-Length | BODY | string | Yes | 151 | is used to describe the transmission length of the HTTP message body. OSS will verify the received message body according to this request header, and the delete operation will be performed only when the message body is correct. |
version | BODY | string | No | 2016-01-01 | version of api |
Content-MD5 | BODY | string | Yes | IVaXz0QX0UTCXraY9Z61mQ== | The Content-MD5 is a string of values generated by the MD5 algorithm. The request header is used to check whether the message content is the same as when it was sent. After the Content-MD5 request header is uploaded, OSS calculates the Content-MD5 of the message body and checks the consistency. description encrypts the DeleteMultipleObjects request message body through MD5 to obtain a 128-bit byte array. Then the byte array is encoded with base64 algorithm, and the encoded string is the Content-MD5 field content. |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
Delete | container | Yes | not involved |
Quiet | enumeration string | Yes | true |
Object | container | Yes | not involved |
Key | string | Yes | test.jpg |
Example
Successful Response example
{
"Delete":"Yes",
"Quiet":"Yes",
"Object":"Yes",
"Key":"Yes"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}