Last update:2025-08-18 15:50:19
This API is used to delete a specified storage bucket.
Note:
You can add the request headerx-amz-force-delete-non-empty-bucket: trueto force the deletion of a non-empty bucket. This will permanently delete all data within the bucket. Once deleted, the data cannot be recovered. Please use this operation with caution.
DELETE / HTTP/1.1
Host: quotes.s3.<Region>.amazonaws.com
Date: Wed, 01 Mar 2006 12:00:00 GMT
Authorization: authorization string
None
None
HTTP/1.1 204 OK
x-wos-request-id: request id
Content-Type: type
Date: date
Content-Length: length
Server: WS-web-server
None
| Scenario | Status Code | Response Message |
|---|---|---|
| Bucket does not exist | 404 | BucketNotFound |
| IAM validation failed | 403 | AccessDenied |
DELETE / HTTP/1.1
Host: BucketName.s3-cn-south-6.wcsapi.com
Date: GMT Date
Authorization: SignatureValue
HTTP/1.1 204 OK
x-wos-request-id: request id
Content-Type: type
Date: date
Content-Length: length
Server: WS-web-server