• Object Storage Service

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

Request

Method

Table 1 Method description

Method

URI

Description

DELETE

/v1/{account}/{container}

Deletes a container in a specified account. Only empty containers can be deleted.

{account} indicates the name of an account. {container} indicates the name of a container.

This operation does not involve a request body.

Example Request

Delete the empty containers from the specified account:

curl -i $publicURL/steven -X DELETE -H "X-Auth-Token:$token"

Request Query Parameters

Parameter

Type

Description

bulk-delete

String

(Optional)

Bulk-deletes objects. This parameter is used with the deletion list file.

A maximum of 10,000 objects 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.

{container}

String

(Required)

Unique name of the container.

For details about container naming rules, see Naming Rules.

Request header parameters

Parameter

Type

Description

X-Auth-Token

String

(Required)

Authentication token.