--- title: "Deleting a Bucket" slug: "deleting-a-bucket-boto3" updated: 2026-10-28T01:54:03Z published: 2026-10-28T01:54:03Z canonical: "docs.vastdata.com/deleting-a-bucket-boto3" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.vastdata.com/llms.txt > Use this file to discover all available pages before exploring further. # Deleting a Bucket The [delete_bucket()](https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/s3.html#S3.Client.delete_bucket) method deletes a bucket. All objects in the bucket must be deleted before the bucket can be deleted. ## Example ```plaintext response = s3_client.delete_bucket(    Bucket='mybucket' ) ```