Does OBS Support Batch Deletion of Objects?

The following table lists the batch deletion support for different OBS tools.

Table 1 Support for batch deletion by different OBS tools

Tool

Batch Deletion

OBS Console

Supported. A maximum of 100 objects can be deleted at a time. If a folder is selected, only one folder can be deleted at a time.

OBS Browser

Supported. A maximum of 100 objects can be deleted at a time. If a folder is selected, only one folder can be deleted at a time.

SDKs

Supported. A maximum of 1,000 objects can be deleted at a time.

APIs

Supported. A maximum of 1,000 objects can be deleted at a time.

Note

The batch deletion performance is negatively correlated with the number of objects in a single request. When it comes to QPS, deleting N objects is counted as N operations. If a large number of objects named with prefixes in lexicographic order are deleted, lots of requests may be concentrated in a specific partition, which results in hot access. This limits the request rate in the hot partition and increases access delay.

To address this problem, you can reduce the number of objects in a single batch deletion request, initiate more concurrent requests, and name objects with random prefixes.