• Object Storage Service

obs
  1. Help Center
  2. Object Storage Service
  3. API Reference (Swift)
  4. Operations on Containers
  5. Batch Delete Containers
  6. Request

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.

Request Headers

Request URI parameters

Parameter

Type

Description

{account}

String

(Required)

Unique name of the account. In the current version, it indicates the unique ID of the account.

Request header parameters

Parameter

Type

Description

X-Auth-Token

String

(Required)

Authentication token.