--- title: "Deleting a Bucket" slug: "deleting-a-bucket-boto3-tg" tags: ["5.4"] updated: 2026-10-28T01:54:14Z published: 2026-10-28T01:54:14Z canonical: "docs.vastdata.com/deleting-a-bucket-boto3-tg" --- > ## 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' ) ```