Deleting Multiple Objects
Last updated: 2019-10-15 20:47:50PDF
COS supports batch deletion of multiple objects. You can delete objects in batches via the console, APIs, and SDKs.
By default, when the deletion task is completed, a null will be returned. If an error occurs, an error message will be returned.
A maximum of 1,000 objects can be deleted in a single request. To delete more objects, split the list and send the request separately.
Via the COS Console
You can delete multiple objects in batches in the COS Console. For more information, see Deleting an Object in Console Guide.
Via REST API
You can use the REST API directly to initiate a multiple objects deleting request. For more information, see DELETE Multiple Objects.
Via the SDK
You can directly call the multiple objects deleting method in the SDK. For more information, see the SDK documentation for the corresponding programming language below: