Deleting a Bucket

Prev Next

The delete_bucket() method deletes a bucket. All objects in the bucket must be deleted before the bucket can be deleted.

Example

response = s3_client.delete_bucket(
    Bucket='mybucket'
)