Batch Deleting Objects

You can send a DELETE Multiple Objects request to batch delete multiple objects from a bucket. OBS returns the deletion result of each object. Deleted objects cannot be restored.

The response modes for batch deleting objects are as follows:

  • Verbose: The returned response includes the deletion result of each requested object in an XML file.
  • Quiet: The returned response includes only results of objects that failed to be deleted.

OBS uses verbose mode by default and you can specify the quiet mode in the request body.

The request header of the batch deletion request must contain the Content-MD5 and Content-Length fields so that the server can detect whether an error occurs in the request message body during network transmission.

For more information, see section Deleting Objects in the Object Storage Service API Reference.