DeleteBucket

Interface description

When deleting the specified storage container (bucket), the files in this storage container will also be deleted.

Note: Only the owner of the storage container has permission to delete it.

Request Syntax

DELETE URL/BucketName

Request Header

Don't forget to add your identity signature to the header.

Response

Response format: application/json

Status codeMessageResponse description

200

Block hash

Delete the block hash generated by the bucket

400

InvalidHead.MissToken

The access key is empty

400

InvalidHead.Token

Access key error

400

InvalidParameter.Name

Bucket name error

403

NoPermission

Access key verification failed

500

InternalError

Server internal error

Request example

Request to delete a bucket named samplebucket

# curl -X DELETE URL/samplebucket -H "Account: cX..." -H "Message: xxx" -H "Signature: 0x..."

Last updated