DELETE
curl -X DELETE "https://mybucket.storage.nami.cloud/" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024"
This response does not have an example.

The bucket must be empty before it can be deleted. You need appropriate permissions to delete buckets in your account.

Delete Bucket

Deletes an empty bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.

Base URL

https://${bucketname}.storage.nami.cloud

Headers

x-amz-mfa

The MFA authentication code when MFA Delete is enabled

Request Examples

curl -X DELETE "https://mybucket.storage.nami.cloud/" \
  -H "Authorization: AWS4-HMAC-SHA256 Credential=AKIAIOSFODNN7EXAMPLE/20231028/us-east-1/s3/aws4_request, SignedHeaders=host;x-amz-date, Signature=fe5f80f77d5fa3beca038a248ff027d0445342fe2855ddc963176630326f1024"

Response Example

HTTP/1.1 204 No Content
x-amz-id-2: JuKZqmXuiwFeDQxhD7M8KtsKobSzWA1QEjLbTMTagkKdBX2z7Il/jGhDeJ3j6s80
x-amz-request-id: 32FE2CEB32F5EE25
Date: Wed, 28 Oct 2023 22:32:00 GMT
Server: Nami Cloud

Authorizations

Authorization
string
header
required

AWS Signature Version 4

Response

204
_mintlify/placeholder

Bucket deleted successfully