Welcome to the new DOCS.vastdata.com. We've added new menus and a version selector, plus new persona and resource pages to help customers get started. Looking for a previous article? Use the docs search.

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'
)