• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (OBS)
  4. Operations on Objects
  5. DELETE Multiple Objects
  6. Responses

Responses

Syntax

HTTP/1.1 status_code 
 x-amz-id-2: id 
 x-amz-request-id: request id 
 x-reserved: amazon, aws and amazon web services are trademarks or registered trademarks of Amazon Technologies, Inc 
 Date: date 
 Content-Type: type 
 Content-Length: length  
 Server: server  

 <?xml version="1.0" encoding="UTF-8" standalone="yes"?> 
 <DeleteResult xmlns="http://obs.example.com/doc/2015-06-30/"> 
 <Deleted> 
 <Key>Key1</Key> 
 </Deleted> 
 <Error> 
 <Key>Key2</Key> 
 <Code>InternalError</Code> 
 <Message>Internal Error</Message> 
 </Error> 
 </DeleteResult>

Response Headers

This response uses common headers. For details about common response headers, see section Common Response Headers.

Response Elements

This response contains elements to return results of object deletion. Table 1 describes the elements.

Table 1 Response elements

Element

Description

Remarks

DeleteResult

Indicates the container for the response.

Type: Container

Mandatory

Deleted

Indicates the container element for a successful deletion.

Type: Container

Mandatory

Error

Indicates the container for a failed deletion.

Type: Container

Mandatory

Key

Indicates the key of a deleted object.

Type: String

Mandatory

Code

Indicates the status code for a failed deletion.

Type: String

Mandatory

Message

Indicates the error details about a failed deletion.

Type: String

Mandatory

VersionId

Indicates the version ID of an object to be deleted.

Type: String

Optional

DeleteMarker

If this element is specified, true will be returned when you create or delete a deletion mark in the requested bucket with versioning enabled.

Type: Boolean

Optional

DeleteMarkerVersionId

Indicates the version ID of the deletion marker deleted or created by the request.

If the DELETE multiple objects request either creates or deletes a deletion marker, OBS returns this element in response with the version ID of the deletion marker. This element will be returned in either of the following cases:

  • You send a non-version DELETE multiple object request, that is, you specify only object key but not the version ID. In this case, OBS creates a deletion marker and returns its version ID in the response.
  • You send a version DELETE multiple objects request, that is, you specify an object key and a version ID that identifies a deletion marker. In this case, OBS deletes a deletion marker and returns its version ID in the response.

Type: Boolean

Optional

Error Responses

  1. If more than 1000 objects are requested, OBS returns status code 400 Bad Request.
  2. If an object key is invalid (for example, the object key contains 1024 characters), OBS returns status code 400 Bad Request.
  3. If the Content-MD5 header does not exist, OBS returns status code 400 Bad Request.
  4. If bucket metadata does not exist, OBS returns status code 404 Not Found and error code NoSuchBucket.
  5. If the requester does not have WRITE permission for the requested bucket, OBS returns status code 403 Forbidden and prompt message AccessDenied.

For details about other error responses, see Table 1.