deleteBucket method
Written by
Updated at September 30, 2024
Deletes an empty bucket. If the bucket is not empty, first delete all objects inside the bucket.
For more information on getting started with the API and the general request format, see How to use the S3 API.
Request
DELETE /{bucket} HTTP/2
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
Headers
Use only common request headers in your requests.
Response
Headers
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.