1
0
forked from docs/doc-exports
doc-exports/docs/obs/api-swift/obs_03_0050.html
zhangyue 894279c39a Object Storage Service API Reference Swift V1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2023-02-02 08:50:48 +00:00

6.7 KiB

Request

Method

Method

URI

Description

POST

/v1/{account}?bulk-delete

Batch deletes containers. A maximum of 10,000 empty containers can be deleted.

{account} indicates the name of an account.

The request body is a text file that includes the containers to be deleted. Each line in the text file represents a container to be deleted.

Example Request

Batch delete containers:

curl -i $publicURL?bulk-delete -XPOST -H "X-Auth-Token:$token" -T ./deletesample

Request Query Parameters

Parameter

Type

Description

bulk-delete

String

(Required)

Bulk-deletes containers. It is used together with the text file that includes the containers to be deleted.

A maximum of 10,000 empty containers can be deleted at once.

Request Headers

Request URI parameters

Parameter

Type

Description

{account}

String

(Required)

A unique account name. In the current version, it indicates a unique ID for the account.

Request header parameters

Parameter

Type

Description

X-Auth-Token

String

(Required)

Authentication token.